Regardless of the DebugSymbols setting in my various vbproj files I want to generate .pdb files.
I have a msbuild project named FX.proj that looks like this:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ProjectReferences Include="C:\product\forms.vbproj" />
<ProjectReferences Include="C:\product\core.vbproj" />
<ProjectReferences Include="C:\product\fx.vbproj" />
</ItemGroup>
<Target Name="Build">
<MSBuild Projects="@(ProjectReferences)" Targets="Build" />
</Target>
</Project>
I call it from the command line like this:
msbuild /t:Build /v:Minimal /nologo "/p:OutputPath=%~dp0bin;Configuration=Release" /fl /flp:LogFile=FX.log;Verbosity=Normal FX.proj
I want to override the DebugSymbols property in each vbproj.
I have attempted to add it to the command line like this:
msbuild /t:Build /v:Minimal /nologo "/p:OutputPath=%~dp0bin;Configuration=Release;DebugSymbols=true" /fl /flp:LogFile=FX.log;Verbosity=Normal FX.proj
AND to the MSBuild target Properties like this:
<Target Name="Build">
<MSBuild Projects="@(ProjectReferences)" Targets="Build" Properties="DebugSymbols=true" />
</Target>
but neither seems to work. Whatever is set in the vbproj for the specified Configuration is what happens.
Any ideas?