Project builds but can't publish

前端 未结 12 1782
萌比男神i
萌比男神i 2020-11-29 04:03

I have an MVC project that for an uknown reason refuses to publish to a local folder in the PC.

The log says the following:

3>------ Publish start         


        
12条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-29 04:44

    I was able to resolve my issue altogether by removing the NuGet package "Microsoft.Net.Compilers", rather than downgrade to 2.4.0.

    (For quite some time, the Publish error would disappear if I simply restarted VS, but eventually that stopped working.)

提交回复
热议问题