We are trying to get our C # application to compile and run using
- Visual Studio 10 (with Microsoft compiler) on Windows and
- MonoDevelop with gmcs, on Linux
However, sections like this in .csproj files (for Visual Studio):
<Compile Include="Foo\Bar.cs" /> <EmbeddedResource Include="Foo\Bar.resx"> <DependentUpon>Bar.cs</DependentUpon> </EmbeddedResource>
must be changed as follows before they work with MonoDevelop / gmcs (if not, MissingManifestResourceException will be thrown at the time resources.GetObject () is executed ):
<Compile Include="Foo\Bar.cs" /> <EmbeddedResource Include="Foo\Bar.resx"> <DependentUpon>Foo\Bar.cs</DependentUpon> </EmbeddedResource>
How to rewrite this in a form that they both will take? (Of course, the DependentUpon is not removed.)
visual-studio monodevelop csproj
reinierpost
source share