Pre-build MSBuild task to update AssemblyInfo not in sync with built exe

后端 未结 4 1462
孤独总比滥情好
孤独总比滥情好 2020-12-05 04:54

I am using a pre-build task in Visual Studio 2008 that invokes msbuild:

C:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\MSBuild.exe $(MSBuildProjectDirectory)\\         


        
4条回答
  •  无人及你
    2020-12-05 05:42

    I don't think you are doing anything wrong - it's a bug.

    I have reported it here - check if you can reproduce it and add a validation, maybe we can get it fixed by MS.

    EDIT: I tried the suggestion by "Si" to update the file in the "BeforeBuild" event - however I still get the same wrong result with Visual Studio 2008/SP1.

    UPDATE/WORKAROUND: MS has responded to the bug report. As a workaround you can add

    FALSE
    

    to your csproj file.

提交回复
热议问题