Hi Craig, What is it, exactly, that you are trying to do in the post-build commands?
To me, this just doesn't make sense: cmd.exe /c $(ProjectDir)postbuild.cmd $(ProjectDir) $(TargetDir) $(TargetPath) And it doesn't match your suggestion: Postbuild.cmd C:\path\to\flexwiki\flexwiki.unittests\app.config C:\path\to\flexwiki\flexwiki.unittests\bin\debug\flexwiki.unittests.dll.conf ig Your suggestion has two vars: $(ProjectDir) and $(TargetPath) while the post-build command has at least 3: $(ProjectDir) $(TargetDir) $(TargetPath) What am I missing here? Fred -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Andera Sent: Thursday, June 21, 2007 8:10 AM To: 'FlexWiki Users Mailing List' Subject: Re: [Flexwiki-users] 2.0.0.53 compile problem Sorry you're having trouble - build-related problems are almost always my fault. :) Both of those errors are the same error. Basically what's happening is that I've configured Visual Studio to copy some configuration files to the bin directory after it builds. We used to need to do this for these projects because the core engine was built to require the presence of a config file. I've since fixed that, but never went back and removed the copy step. I'll add that to the list of things to clean up. The thing is, the copy step shouldn't be failing for you. Can you try going to a command line in the FlexWiki.UnitTests directory and running this command [1]? Obviously you'll need to substitute the path where you've got FlexWiki for C:\path\to\flexwiki. My earlier reference to "build test" versus "build verify" was assuming you were using the build script (in build.cmd), not VS2005. Either way of building flexwiki should work fine. "Build test" is what you'd run from the command line to compile and run the unit tests. "Build verify" would compile FlexWiki, run the unit tests, and additionally install a test instance and run some integrations tests against it. The integration tests live in the BuildVerificationTests project, and are unfortunately broken right now. Hence my recommendation to use "build test" instead of "build verify". In your case, I wouldn't use either, but hopefully that clarifies things a bit. If you get stuck, you could always just remove the postbuild step from the project. In the UnitTests and BuildVerificationTests projects, go to Projects->Properties->Build Events and delete what you find in Projects->Properties->"Post-build event command line". Hopefully you have some time to play with it before you take that step, though, so we can figure out what's wrong and prevent it from happening to anyone else. In the meantime, as I said, I will work on cleaning that stuff on. But the list is getting pretty long - might take me a little while to get to that one. :) [1] Postbuild.cmd C:\path\to\flexwiki\flexwiki.unittests\app.config C:\path\to\flexwiki\flexwiki.unittests\bin\debug\flexwiki.unittests.dll.conf ig > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flexwiki- > [EMAIL PROTECTED] On Behalf Of Fred Dalgleish > Sent: Thursday, June 21, 2007 10:53 AM > To: 'FlexWiki Users Mailing List' > Subject: [Flexwiki-users] 2.0.0.53 compile problem > > Hi Folks, > > I am hitting the following problem, likely because of my inexperience > with VS 2005. > > We are new users of VS 2005, having done a fair amount of development > work with VS2003. Anyway, I downloaded 2.0.0.53 source and opened > FlexWikiCore.sln from c:\program > files\flexiwiki_20\FlexWikiCore-2.0.0.53-src. > > After opening successfully, I selected Build > Rebuild solution. The > compile moved along, then threw these errors: > > Error 1 The command "cmd.exe /c C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\FlexWiki.UnitTests\postbuild.cmd > C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53-src\FlexWiki.UnitTests\ > C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\FlexWiki.UnitTests\bin\Release\ > C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\FlexWiki.UnitTests\bin\Release\Flex > Wiki.UnitTests.dll" exited with code 1. FlexWiki.UnitTests > > Error 2 The command "cmd.exe /c C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\BuildVerificationTests\postbuild.cm > d C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53-src\BuildVerificationTests\ > C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\BuildVerificationTests\bin\Release\ > C:\Program > Files\FlexWiki\FlexWikiCore-2.0.0.53- > src\BuildVerificationTests\bin\Release\ > FlexWiki.BuildVerificationTests.dll" exited with code 1. > BuildVerificationTests > > We tried the other build options, with the same result. > > Previously, it had been suggested that we be doing a "build verify" > and should instead do a "build test". However, I'm not familiar with > those terms and I'd appreciate clarification. > > Could anyone shed some light on the above 2 errors? > > Thanks > Fred > > > > ---------------------------------------------------------------------- > - > -- > This SF.net email is sponsored by DB2 Express Download DB2 Express C - > the FREE version of DB2 express and take control of your XML. No > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Flexwiki-users mailing list > Flexwiki-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/flexwiki-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flexwiki-users mailing list Flexwiki-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexwiki-users ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flexwiki-users mailing list Flexwiki-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flexwiki-users