Cannot Create ASP.NET Core RC 2 web project in VS 2015
Hi,
I just downloaded and installed the preview RC2 bits for ASP.NET Core on Visual Studio 2015 Community Edition. When I try to create a new ASP.NET Core web project I am getting the following error "The system cannot find the specified file" and the project is not created. I tried to repair the ASP.NET RC2 installer and still facing the same issue. I did not have RC1 bits installed on this machine. Not sure what to do to fix this. Thanks

cc @sayedihashimi
Can you copy info from Help About in VS (there is a copy button on the dialog) and paste it here?
Also, can you try the following:
- Open a Visual Studio 2015 Developer Command Prompt
- Run: devenv /log
- Once the IDE is up an running, close VS and grab the ActivityLog.xml from %appdata%\Microsoft\VisualStudio\14.0\ActivityLog.xml and share that
The VS Help About Copy Below
Microsoft Visual Studio Community 2015 Version 14.0.25123.00 Update 2 Microsoft .NET Framework Version 4.6.01569
Installed Version: Community
Visual Basic 2015 00322-20000-00000-AA571 Microsoft Visual Basic 2015
Visual C# 2015 00322-20000-00000-AA571 Microsoft Visual C# 2015
Visual C++ 2015 00322-20000-00000-AA571 Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 5.2.60328.3 Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 14.1.20512.0 ASP.NET and Web Tools 2015.1
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0 For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0 For additional information, visit http://www.asp.net/
Azure App Service Tools v2.8.1 14.0.11123.0 Azure App Service Tools v2.8.1
Common Azure Tools 1.7 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0 JavaScript Language Service
JavaScript Project System 2.0 JavaScript Project System
Microsoft Azure HDInsight HQL Service 2.0.2600.0 Language service for Hive query
Microsoft Azure HDInsight Tools for Visual Studio 2.0.2600.0 An integrated development environment for HDInsight application development.
Microsoft Azure Mobile Services Tools 1.4 Microsoft Azure Mobile Services Tools
Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3
Microsoft Azure Tools 2.8 Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.31121.1
Node.js Tools 1.1.40329.04 Adds support for developing and debugging Node.js apps in Visual Studio
Node.js Tools - Profiling 1.1.40329.04 Profiling support for Node.js projects.
NuGet Package Manager 3.5.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2 Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Data Tools 14.0.60311.1 Microsoft SQL Server Data Tools
TypeScript 1.8.31.0 TypeScript tools for Visual Studio
Umbraco ModelsBuilder Custom Tool 1.0 Umbraco Visual Studio Custom Tool for generating strongly typed IPublishedContent models.
Visual Studio Tools for Apache Cordova Update 9 Visual Studio Tools for Apache Cordova
Xamarin 4.0.3.214 (0dd817c) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 6.0.3.5 (a94a03b) Visual Studio plugin to enable development for Xamarin.Android.
Xamarin.iOS 9.6.1.8 (3a25bf1) Visual Studio extension to enable development for Xamarin.iOS.
I have uploaded the log file as instructed. Thanks for the quick help ActivityLog.zip
I see the latest Web Tools from RC2 (ASP.NET and Web Tools 14.1.20512.0), but I don't see the .NET Core Tools in the list.
Could you perhaps share the logs from the RC2 install? They should be located in your %temp% folder (all the files that start with dd_DotNetCoreTools)
This is the exe [ DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe ] that i executed to install the templates. I thought it would also install .NET Core. Should that be installed separately?
No, the RC2 bundle carries all the necessary items. The logs show that it was installed.
You can confirm this on your machine by looking for C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\DotNet\
The ActivityLog also shows that it loaded the extension _Successfully loaded extension... C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\MICROSOFT\DOTNET_
But according to the Help/About it's not loaded.
I do see a warning about an error loading Microsoft.VisualStudio.Editor.Implementation.EditorPackage.
Did you previously (before installing RC2) see any warnings when you start the IDE about packages not loading correctly. You can suppress these message and if you do, VS won't report the errors in the future.
A few things you could try:
- Close VS, delete %appdata%\local\Microsoft\VisualStudio\14.0\ComponentModelCache and restart the IDE
- Start the IDE from a developer prompt with: devenv /resetskippkgs (this will force VS to report package load failures of packages that were previously suppressed).
I also ran repair on the RC1 installer earlier because I thought something was amiss, did a machine restart too!
-
I can see a bunch of files installed in the [ C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\DotNet\ ] folder
-
Deleted the ComponentModelCache folder and restarted.
-
restarted from dev prompt with devenv /resetskippkgs. VS restarts but no prompts shown as such. Tried to create a new project and still get the same error as pasted above No Missing packages warnings
Before creating a new project. Can you open the Error List and Output Windows (you can open them from the View menu in the IDE) and see if any errors are logged there about missing files? I noticed that the initial screenshot didn't show those windows
Does this only happen with a new Web project for ASP.NET Core or does this repro for things like Class/Console (.NET Core) as well?
The error and output windows remain empty. If I create a DNX Console application I get the following error. Although I am not sure what I should reinstall to ensure dot net core installs correctly.

According to the logs the wizard DLL was installed:
MSI (s) (BC:B8) [15:25:23:695]: Executing op: FileCopy(SourceName=i4oix2at.dll|Microsoft.VisualStudio.ProjectSystem.DotNet.Wizard.dll,SourceCabKey=Microsoft.VisualStudio.ProjectSystem.DotNet.Wizard.dll,DestName=Microsoft.VisualStudio.ProjectSystem.DotNet.Wizard.dll,Attributes=512,FileSize=31984,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=14.1.20512.0,Language=0,InstallMode=58982400,,,,,,,)
It definitely looks like VS is not loading up the extension (since nothing shows in Help/About for the .NET Core Tools)
The only other thing I can think of suggesting is closing VS, opening a developer command prompt (Run as Admin), and then run devenv /setup
I did devenv /setup - no difference.
Today I uninstalled ASP.NET Core RC2 and .NET Core RC2 SDK. And reinstalled from the installer. Same results - so I think I will have to either try reinstalling VS 2015 again. or wait for the next release.
Thanks for all your time in assisting me with the issue promptly.
Experiencing the same issue as @saurabhnandu.
Did a full cleanup of Visual Studio 2015 including removal of Visual Studio folders on my hard drive. And now it works.
I have been getting the same error as @saurabhnandu And I uninstalled the VS 2015 and reinstalled it from ISO file and repaired the DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe And still getting the same error.
Had same issue as @saurabhnandu. After several install/uninstall I found path that seems worked for me: At least yesterday ISO of VS 2015 Community with Updates seems still contained Web tools (Beta 8)?
- So uninstalled VS, deleted VS directories.
- Installed VS, selecting Custom Install and unchecking Web Tools.
- Installed DotNetCore.1.0.0.RC2-VS2015Tools.Preview1.exe.
- Started VS install from Web and selected Modify, checked on Web Tools.
- If there will be issues i.e. I had editor not highlighting C# syntax, do VS Repire.
Hope this will help someone.
We're still investigating
@saurabhnandu Do you have any other versions of Visual Studio installed on the machine, e.g. VS 2010?
Also, can you confirm whether you see any entries in the registry for
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\Packages{98f77210-a364-4168-bae6-4d46fa7e19fe}
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\RuntimeConfiguration\dependentAssembly\codeBase{098093DD-C78C-4448-AACF-4F764CA5FBF6}
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\RuntimeConfiguration\dependentAssembly\codeBase{6BB7756B-6A5D-4DFF-93D2-D2D5B873E535}
If you can, could you perhaps export HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\RuntimeConfiguration and attach that file, then I can verify whether VS merged all the package registration information.
I noticed that sdk install locations are different:
C:\Program Files\dotnet\sdk\1.0.0-preview1-002702 C:\Program Files\dotnet\bin\sdk
when I do "dotnet --version" I get 1.0.0-beta-001598 x64 version
and VS2105 is not finding the first one. I don't know if this has anything to do with it but I have seen the error. I was trying to convert an existing project and no matter what I put in global.json it could not find the sdk. It keeps looking for the x86 version.
Maybe "file not found" error is about the sdk!
No, just vs 2015 update 2. But I am using Windows 10 Insider build (latest one) could that be an issue?
I had previously installed VS 15 preview but it was installed long back.
Regards, Saurabh
On Thursday 19 May 2016, Jacques Eloff [email protected] wrote:
We're still investigating
@saurabhnandu https://github.com/saurabhnandu Do you have any other versions of Visual Studio installed on the machine, e.g. VS 2010?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/aspnet/Home/issues/1455#issuecomment-220353266
Don't think so. We were following up with another team about one of the errors I saw in the ActivityLog you shared yesterday. They mentioned that they've seen isolated cases with older versions of VS such as 2010 when they are installed SxS with 2015.
If you can get the registry entries to me that would be a great help. At the moment it looks like the pkgdef files for the extensions are not being merged by VS, but the registry keys should be able to shed some light on that.