Lots of build warnings when COM objects ActiveDs or MSXML2 are referenced

后端 未结 3 1484
我寻月下人不归
我寻月下人不归 2021-01-02 01:34

After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of warnings for some COM objects.

Sample code for test (actual code doesn\'t matter, just used t

3条回答
  •  我在风中等你
    2021-01-02 01:52

    I had experienced the same problem and fixed it by editing the project file (.csproj), following a suggestion from here:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7a7c352b-20cb-4931-b3b5-27e899016f75/turning-off-msbuild-warnings-msb3305?forum=msbuild

    I added the following key to the property group of each build configuration:

    True
    

提交回复
热议问题