Building dni trunk on WXP 32bits w. VS2008 problems

Oct 20, 2010 at 7:56 PM
Edited Oct 20, 2010 at 10:03 PM

Hi,

First of all, thanks a lot for this great project, dni is a great time saving tool.

I just tried to rebuild dni out of the svn trunk, for that I installed latest msbuild community tasks and NUnit software. Then I converted the full project into vs2008.

But when I build it from vs2008, I get an error in Version because it can't find Version.h and its manifest (I guess these files are autogenerated ?)

I would like to contribute in fixing few litlle bugs I have seen so far, but need a bit of your help first :)

TIA,

Fabien

PS: Here's the error list output from the vs2008 devenv:

Error 1 Source file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\GlobalAssemblyInfo.cs' could not be opened ('Unspecified error ') InstallerLibError 2 Source file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\GlobalAssemblyInfo.cs' could not be opened ('Unspecified error ') TestTimerError 3 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found InstallerEditorError 4 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found InstallerLinkerError 5 Source file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\GlobalAssemblyInfo.cs' could not be opened ('Unspecified error ') dotNetUnitTestsRunnerError 6 The specified task executable location "C:\Program Files\Subversion\bin\svnversion.exe" is invalid. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version.proj 16 5 VersionError 7 The specified task executable location "C:\Program Files\Subversion\bin\svnversion.exe" is invalid. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version.proj 16 5 VersionError 8 The command "@echo offif not EXIST "H:\Work\InstallerParts\dotNetInstaller\svn\trunk\\Version\version.h" (  call "H:\Work\InstallerParts\dotNetInstaller\svn\trunk\\build.cmd" version)" exited with code 1. VersionError 9 fatal error RC1015: cannot open include file 'Version/Version.h'. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\Version.rc 3 CppUnitTestsRunnerError 10 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found InstallerConfigError 11 The command "InstallerConfig\bin\Release\InstallerConfig.exe /ConfigFile:Samples/CustomInputSetup\Configuration.xml" exited with code 9009. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\dni.proj 235 5 InstallerLibUnitTestsError 12 The command "InstallerConfig\bin\Release\InstallerConfig.exe /ConfigFile:Samples/CustomInputSetup\Configuration.xml" exited with code 9009. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\dni.proj 235 5 InstallerLibUnitTestsError 13 The command "H:\Work\InstallerParts\dotNetInstaller\svn\trunk\\build.cmd rewritesamples /p:Configuration=Release" exited with code -1. InstallerLibUnitTestsError 14 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstallerLib\InstallerCommandLineInfo.cpp 2 dotNetInstallerLibError 15 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstallerLib\ConfigFiles.cpp 6 dotNetInstallerLibError 16 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstallerLib\ConfigFile.cpp 3 dotNetInstallerLibError 17 fatal error RC1015: cannot open include file 'Version/Version.h'. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\Version.rc 3 dotNetInstallerToolsLibUnitTestsError 18 fatal error RC1015: cannot open include file 'Version/Version.h'. H:\Work\InstallerParts\dotNetInstaller\svn\trunk\Version\Version.rc 3 dotNetInstallerLibUnitTestsError 19 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found dotNetInstallerUnitTestsError 20 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\UnitTests\dotNetUnitTestsRunner\bin\Release\dotNetUnitTestsRunner.dll' could not be found dotNetInstallerUnitTestsError 21 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstaller\dotNetInstallerDlg.cpp 10 dotNetInstallerError 22 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstaller\dotNetInstaller.cpp 5 dotNetInstallerError 23 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\dotNetInstaller\ConfigFileManager.cpp 4 dotNetInstallerError 24 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found InstallerEditorUnitTestsError 25 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\UnitTests\dotNetUnitTestsRunner\bin\Release\dotNetUnitTestsRunner.dll' could not be found InstallerEditorUnitTestsError 26 Metadata file 'H:\Work\InstallerParts\dotNetInstaller\svn\trunk\InstallerLib\bin\Release\InstallerLib.dll' could not be found InstallerDocLibError 27 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\htmlInstaller\ConfigFileManager.cpp 4 htmlInstallerError 28 fatal error C1083: Cannot open include file: 'Version/Version.h': No such file or directory h:\Work\InstallerParts\dotNetInstaller\svn\trunk\htmlInstaller\htmlInstaller.cpp 7 htmlInstaller

Oct 21, 2010 at 8:02 AM

hello,
since the build runs on my machine with VS2008 I try to help:

in the trunk of DNI sources, there is a build skript called build.cmd, this is the way to build DNI. To start the complete build, type "build all" in the command line. For VS2008 I changed the follwing part of the script:

set VisualStudioCmd=[..]\Microsoft Visual Studio 9.0\[..]
set FrameworkVersion=v3.5  (this might be optional)

at least this helped me out. After the changes you would at least get a step forward.

I hope it helps.
Best regards,
quirrel

Coordinator
Oct 21, 2010 at 2:45 PM
Edited Oct 21, 2010 at 2:46 PM

There's a page on contributing in the documentation that lists a couple more pieces of software you need if you want to build everything (MSBuild Community Tasks, Sandcastle, etc.). Version is generated based on the SVN revision.