|
I don’t know what the problem is but I think it has something to do how I’m setting up the CSC task. Below is a subset of the file list that’s in the project file. I know to put the ones with the build action ‘BuildAction = "Compile’ into the <sources> element. I put the ‘BuildAction = "EmbeddedResource"’ ones into the <resources> element. I put the ‘BuildAction = "Content"‘ in the <sources> element.
The messages I’m getting that don’t make sense are like this: [CDATA[ Read in 0 resources from 'C:\CODEHIVE_CVS\HEFII\GDNII\TransactionLayer\EncounterService.asmx.resx' ]]
and c:\CODEHIVE_CVS\HEFII\GDNII\TransactionLayer\Config\Remoting\AppointmentDataManagerRemoting.config(1,1): error CS0116: A namespace does not directly contain members such as fields or methods
The question is: Am I putting things in the right place? Is there something else I need to do?
<Files> <Include> <File RelPath = "AssemblyInfo.cs" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "EncounterService.asmx" BuildAction = "Content" /> <File RelPath = "EncounterService.asmx.cs" DependentUpon = "EncounterService.asmx" SubType = "Component" BuildAction = "Compile" /> <File RelPath = "EncounterService.asmx.resx" DependentUpon = "EncounterService.asmx.cs" BuildAction = "EmbeddedResource" /> <File RelPath = "Global.asax" SubType = "Component" BuildAction = "Content" /> <File RelPath = "Global.asax.cs" DependentUpon = "Global.asax" SubType = "Code" BuildAction = "Compile" /> <File RelPath = "Global.asax.resx" DependentUpon = "Global.asax.cs" BuildAction = "EmbeddedResource" /> <File RelPath = "View.asmx" BuildAction = "Content" /> <File RelPath = "View.asmx.cs" DependentUpon = "View.asmx" SubType = "Component" BuildAction = "Compile" /> <File RelPath = "View.asmx.resx" DependentUpon = "View.asmx.cs" BuildAction = "EmbeddedResource" /> <File RelPath = "Web.config" BuildAction = "Content" /> <File RelPath = "Config\logger.config" BuildAction = "Content" /> <File RelPath = "Config\Tricare\GDN\Transaction\SF600_Body.xslt" BuildAction = "Content" /> <File RelPath = "Config\Tricare\GDN\Transaction\SF600_Footer.xslt" BuildAction = "Content" /> <File RelPath = "Config\Tricare\GDN\Transaction\SF600_Header.xslt" BuildAction = "Content" /> </Include> </Files>
Thanks,
MArk B. P.S. The reason I’m not using the solution task is because I just started doing this stuff with C# and I’m using this as a way to learn more about it. And yes, this does compile with the solution task. |
[Nant-users] Trouble compiling a project with a web reference
Butler, Mark A Mr IPI Gramm Tech Thu, 06 Jan 2005 17:28:07 -0800
- [Nant-users] Trouble compiling a project ... Butler, Mark A Mr IPI Gramm Tech
- Re: [Nant-users] Trouble compiling a... Ian MacLean
- RE: [Nant-users] Trouble compiling a... Butler, Mark A Mr IPI Gramm Tech
