Mike G
Mike G

Reputation: 456

Visual Studio 2015 publish failed

My Visual Studio 2015 project would not publish via FTP after it worked for almost a year. It is .NET Framework 4.5.2.

After a compiler update a couple of weeks ago, I would sometimes have to try publishing twice before it would update. Last night after a Windows Update, it wouldn't publish at all.

Solution:

Hope this helps someone with the same problem.

Upvotes: 0

Views: 1076

Answers (2)

Monique Altero
Monique Altero

Reputation: 76

I had a similar problem. The project was building okay but when I published it Azure send me errors.

My project target .NET framework was 4.6.2 version and I was upgrading Nugget packages, unfortunatelly I upgraded my .NET Compilers to last version and it wasnt compatible to my target .NET version.You should be able to see it here:

Description of .NET Compilers

My target framework

I fixed it by downgrading .NET Compilers to a version compatible to my .NET Framework (In my case, to use 4.6.2 framework I need to use .NET Compiller 2.10).

Upvotes: 0

Mike G
Mike G

Reputation: 456

I uninstalled compiler 2.6.1 and installed 2.0.1 (compatible with .NET 4.5.2) and was able to publish via FTP without any problems or errors.

Upvotes: 1

Related Questions