You might encounter compilation error in Visual Studio 2015 when a new .NET Core 1 web app is created, if you have installed Visual Studio 2017 (RC as of now). When a new .NET Core 1 web application is created/opened in Visual Studio 2015, with the project template you get with .NET Core 1.0.1 tools Preview 2, while having ".NET Core cross-platform development" for Visual Studio 2017 in your machine, you might see below error prompted.
Microsoft Visual Studio
The following error occurred attempting to run the project model server process (1.0.0-rc4-004771).
Unable to start the process. No executable found matching command "dotnet-projectmodel-server"
The project model server process provides intellisense, build, and reference information to Visual Studio and without it your experience will be very limited. Please try closing and reopening Visual Studio to see if that corrects the problem. Alternatively, check that the .NET Core SDK is properly installed.
When attempt to compile the solution you may encounter a compilation error below.
WebApp.xproj(7,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk\1.0.0-rc4-004771\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Open/Create .NET Core 1 Web App error
You might see references for the Core 1 web app is not restored.
Reason for this issue is when you setup ".NET Core cross-platform development" for Visual Studio 2017 .NET Core SDK 1.0.0-rc4-004771 or higher is installed and VS 2015 does not support this SDK. Multiple SDKs here confuse VS 2015.
How to resolve?
Add a global.json file to the location of the solution file.
Set the SDK version (version should be 1.0.0- preview version available in your macine) as shown below in global.json.
Now close and open the solution in visual studio 2015 and you can see the restore of references. No errors when opening solution.
Build solution works and you should be able to run the application.
Wednesday, 22 February 2017
Resolve MSB4019: The imported project "C:\Program Files\dotnet\sdk\1.0.0-rc4-004771\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found or Unable to start the process. No executable found matching command "dotnet-projectmodel-server"
It is great if the latest updates to TFS can be applied as and when they are released. But for a large organization it might not be sometime...
SQL Server Integration Services (SSIS) projects can be created to perform ETL (Extract Transform and Load) operations. As Implementing of Co...
Generally windows services are deployed by creating an msi installer. It is possible to deploy msi via VSTS/TFS release management using the...
In modern software development usage of only a source control mechanism would not add value to the software delivery process. However, some ...
If you have upgraded the TFS from TFS 2015 to TFS 2018 you will encounter a situation where your vNext build agents 1.xx are no longer valid...