Compilation time can be improved. Run "dotnet build --build-profile" for more information.

I am in VS 2015 Update 3, Windows 10, .NET Core 1.0. When I create a project in my solution, I get a message in the header:

(Compilation time can be improved. Run "dotnet build --build-profile" for more information)

When I run this in any of the projects, I get the following:

The MyProj.Web project (.NETCoreApp, Version = v1.0) was previously compiled. Skip compilation.

If I clear the solution and delete all bin and obj folders, this command creates the project, as usual, without the additional information printed as a result of the --build-profile flag. Creates in Visual Studio after that it still prints the message.

Do I have to do something to fix this?

+6
source share
1 answer

MSBuild seems to work as it does here. He does not create the project because nothing in the source has changed to require reconnection. He will provide you with this message to notify you in case there are some changes that MSBuild did not detect.

This post may be a bit confusing, see this issue on github for more information on this behavior.

+4
source

All Articles