c# - Source file '' could not be opened ('The system cannot find the file specified. ') (CS1504) -
i'm trying generate csproj file myself. when open project generated csproj, structure seems quite good, when build project, following error every .cs files in project
source file 'wrongpath/mysource.cs' not opened ('the system cannot find file specified. ') (cs1504)
i wonder wrong path come ? in csproj path correct, it's not same here...
<project toolsversion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" defaulttargets="build"> <propertygroup> <projectguid>{724f3a09-aacf-487e-bf67-193e2e4e5d9c}</projectguid> <configuration condition=" '$(configuration)' == '' ">debug</configuration> <platform condition=" '$(platform)' == '' ">x86</platform> <outputtype>exe</outputtype> <rootnamespace>myproject.csproj</rootnamespace> <assemblyname>myproject.csproj</assemblyname> <targetframeworkversion>v4.0</targetframeworkversion> <signassembly>false</signassembly> <delaysign>false</delaysign> <baseintermediateoutputpath>path\to\the\project\target\net\obj\</baseintermediateoutputpath> <allowunsafeblocks>false</allowunsafeblocks> <nostdlib>false</nostdlib> <warninglevel>4</warninglevel> <treatwarningsaserrors>false</treatwarningsaserrors> <targetframeworkprofile /> <runpostbuildevent>onbuildsuccess</runpostbuildevent> </propertygroup> <propertygroup condition=" '$(platform)' == 'x86' "> <platformtarget>x86</platformtarget> <registerforcominterop>false</registerforcominterop> <generateserializationassemblies>auto</generateserializationassemblies> <baseaddress>4194304</baseaddress> <filealignment>4096</filealignment> </propertygroup> <propertygroup condition=" '$(configuration)' == 'debug'"> <outputpath>path\to\the\project\target\net\debug\</outputpath> <debugsymbols>true</debugsymbols> <debugtype>full</debugtype> <optimize>false</optimize> <checkforoverflowunderflow>true</checkforoverflowunderflow> <defineconstants>debug;trace</defineconstants> <intermediateoutputpath>path\to\the\project\target\net\debug</intermediateoutputpath> <startaction>project</startaction> </propertygroup> <propertygroup condition=" '$(configuration)' == 'release' "> <outputpath>path\to\the\project\target\net\release\</outputpath> <debugsymbols>false</debugsymbols> <debugtype>none</debugtype> <optimize>true</optimize> <checkforoverflowunderflow>false</checkforoverflowunderflow> <defineconstants>trace</defineconstants> </propertygroup> <itemgroup> <reference include="icsharpcode.sharpziplib.dll"> <hintpath>path\to\the\project/../../ikvm-7.2.4630.6-eh/bin/icsharpcode.sharpziplib.dll</hintpath> </reference> [... other references written same way] <reference include="system" /> <reference include="system.core" /> <reference include="system.xml.linq" /> <reference include="system.data.datasetextensions" /> <reference include="microsoft.csharp" /> <reference include="system.data" /> <reference include="system.xml" /> <reference include="nunit.framework" /> </itemgroup> <itemgroup> <folder include="path\to\the\project\src\test\net\myproject\builders" /> <folder include="path\to\the\project\src\test\net\myproject\service" /> <folder include="path\to\the\project\src\test\net\myproject" /> <folder include="path\to\the\project\src\test\net\resources" /> <folder include="path\to\the\project\src\test\net" /> <folder include="path\to\the\project\src\test\resources\examples\requests" /> <folder include="path\to\the\project\src\test\resources\examples\responses" /> <folder include="path\to\the\project\src\test\resources\examples" /> <folder include="path\to\the\project\src\test\resources\p12\acc" /> <folder include="path\to\the\project\src\test\resources\p12\int" /> <folder include="path\to\the\project\src\test\resources\p12" /> <folder include="path\to\the\project\src\test\resources" /> </itemgroup> <itemgroup> <none include="src/test/net/resources/myproject.test.session.properties" /> <none include="src/test/resources/myproject.properties" /> [...other properties files added same way] </itemgroup> <itemgroup> <compile include="src/test/net/myproject/abstracttestclass.cs" /> <compile include="src/test/net/myproject/builders/firsttest.cs" /> <compile include="src/test/net/myproject/builders/secondtest.cs" /> <compile include="src/test/net/myproject/builders/thirdtest.cs" /> [...other .cs files added same way] </itemgroup> <import project="$(msbuildbinpath)\microsoft.csharp.targets" />
edit : i'm using sharpdevelop
Comments
Post a Comment