Project builds but can't publish

前端 未结 12 1781
萌比男神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:43

    Try removing the Microsoft.Net.Compilers Nuget package.

    I had tried a lot of things, none successful. I did this and the publishing succeeded. To be sure, I restored my project from BitBucket to its original condition, tested to see the publishing failed, removed the nuget package again, and it worked.

提交回复
热议问题