Re: Relative path running a windows batch

2012-08-22 Thread nietzsche44
Solved!!
 
Thats it, I am specifying the solution with the following command:
 
msbuild /p:Configuration=Debug /p:Platform="Any CPU" Test.sln
 
Finally the solution was easy, just add double quotes to the copy command, 
the problem was that when at the beginning I tried that the same problem 
occurred again but with another project with a similar name, so I got them 
mixed and thought it was not the solution,  I am sorry for bothering you.
 
copy "$(TargetPath)" "$(SolutionDir)..\CustomFolder\"
 
Thank you very much for your help.

 

 


El martes, 21 de agosto de 2012 16:25:52 UTC+2, slide escribió:

> How are you specifying your build? Are you passing an sln file to msbuild? 
> If not, I am not sure msbuild will set the SolutionDir variable.
>
> Sent from my Windows Phone
> --
> From: nietzsche44
> Sent: 8/21/2012 7:03 AM
> To: jenkins...@googlegroups.com 
> Subject: Re: Relative path running a windows batch
>
> Sorry slide I wasn't aware of that possibility, the problem is that I have 
> not Visual Studio installed in the server.
>  
> David I am specifying the command in Visual Studio (the server downloads 
> the code from the repository) in the tab Build Events, Post-Build event 
> command line textbox.
>  
> Thank you very much
>


Re: Relative path running a windows batch

2012-08-21 Thread nietzsche44
Sorry slide I wasn't aware of that possibility, the problem is that I have 
not Visual Studio installed in the server.
 
David I am specifying the command in Visual Studio (the server downloads 
the code from the repository) in the tab Build Events, Post-Build event 
command line textbox.
 
Thank you very much


Re: Relative path running a windows batch

2012-08-20 Thread nietzsche44
Hi slide,

Thanks for the answer. I am not sure about what you mean using devenv to 
build, as far as I know, using devenv in a command line opens the 
project/solution in a visual studio window.

Thank you very much

On Monday, August 20, 2012 4:58:34 PM UTC+2, slide wrote:
>
> What happens if you build using devenv.exe instead of msbuild.exe? 
>
> Thanks, 
>
> slide 
>
> On Mon, Aug 20, 2012 at 7:27 AM, nietzsche44 
> > 
> wrote: 
> > Hi, 
> > 
> > I am using Jenkins to build a C# project that includes a postbuild event 
> > that copies a file using a relative path: 
> > 
> > copy $(TargetPath) $(SolutionDir)..\CustomFolder\ 
> > 
> > But the copy fails because of the relative path ..\ 
> > I've made some tests executing a simple Windows batch command using 
> relative 
> > path to copy a file, for example, and it doesn't work either. 
> > 
> > Could you give me a hint to solve this?? 
> > 
> > Thanx 
>
>
>
> -- 
> Website: http://earl-of-code.com 
>


Relative path running a windows batch

2012-08-20 Thread nietzsche44
Hi, 

I am using Jenkins to build a C# project that includes a postbuild event 
that copies a file using a relative path: 

copy $(TargetPath) $(SolutionDir)..\CustomFolder\ 

But the copy fails because of the relative path ..\ 
I've made some tests executing a simple Windows batch command using 
relative path to copy a file, for example, and it doesn't work either. 

Could you give me a hint to solve this?? 

Thanx