1 min read
Windows Azure

Windows Azure Development: The target “CoreCompile” does not exist in the project.

Recently I have looking into SharePoint integration with Windows Azure (I will post more about this project, when it works:-)), and I ran across some warnings when I was publishing a new MVC3 application to my Azure instance.

The warning I received was

“C:\Program Files (x86)\MSBuild\4.0\Microsoft.Common.targets\ImportAfter\Microsoft.VisualStudio.SharePoint.SandboxedCompilation.targets(47,5): warning MSB4057: The target “CoreCompile” does not exist in the project.”

As the publish was taking longer than expected and I had previously not had any warnings, I thought I would investigate.  It turns out that when I created my new MVC app I had forgotten to add the required references to the project to allow it to run in Azure.

I added the following references and marked them as “copy local”.

•Microsoft.Web.Infrastructure
•System.Web.Helpers
•System.Web.Mvc
•System.Web.Razor
•System.Web.WebPages
•System.Web.WebPages.Deployment
•System.Web.WebPages.Razor

Once I had added these everything deployed as expected.

Want more cloud insights? Listen to Cloudy with a Chance of Insights podcast:

Spotify | YouTube | Apple Podcasts

Tags

Deployment
Like this article?

Comments

Richard Hogan

Richard Hogan

Author & Host

Richard is a Microsoft-focused architect and consultant with deep expertise in Azure, Microsoft 365, cybersecurity, and enterprise cloud migration. He is the founder of The Microsoft Cloud Blog and co-host of the Cloudy with a Chance of Insights podcast. All views expressed are his own.

You might also like

In-depth cloud tech discussions from Microsoft experts.

Expert insights on Microsoft Azure, cloud architecture, and enterprise technology.