I get this error message when I try to add a .NET core class library to my solution:
Error: this template attempted to load component assembly 'Microsoft.VisualStudio.ProjectSystem.DotNet.Wizard, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates.
An empty folder is created on disk but nothing is added to the solution.
My initial process consisted of:
I have tried the following after getting this error:
devenv /setup
as administratorI shut down and restart after each step as well, but no dice.
What else can I try? I had the preview bits of .NET Core on the machine earlier but according to the installation instructions it should be enough to just uninstall them before installing the release files, which I did.
Is there a log file somewhere which may contain information about why the assembly fail to load?
I have two elements in my uninstall programs list that match "Core":
I also have this installed, which seems to have been installed together with the above bits:
These 3 elements are all dated as installed today. I think the preview and rc1 parts of the name comes from the fact that only the runtime was released as final but the tooling is still in preview.
I got the installation files from here - http://dot.net/core - so it seems to me that I should've already installed the right bits.
There are no updates lingering under the Visual Studio extensions and updates.
Update 1: I did a full repair, which changed nothing.
I then tried to use the command line tool, dotnet
, to create a project and that worked just fine, everything from dotnet new
to dotnet run
executed successfully and with the expected results.
I then tried copying the project.json
file into a subdirectory of my existing solution, edited it to remove the entry point bit and then tried to manually add the project in VS2015, and I got this:
The 'DNX Project System' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file 'C:\Users\lasse\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
The activity log it refers to can be found on my public dropbox (renamed to a .txt extension) here: ActivityLog.xml (.txt).
Extracts from this file that may be interesting are:
<description>Performance warning: String load failed. Pkg:{98F77210-A364-4168-BAE6-4D46FA7E19FE} (DNX Project System) LANG:0409 ID:5011
</description>
<description>LegacySitePackage failed for package [DNX Project System]Source: 'System.ComponentModel.Composition' Description: No exports were found that match the constraint: 
	ContractName	Microsoft.VisualStudio.Web.ProjectSystem.Telemetry.ITelemetryProvider
	RequiredTypeIdentity	Microsoft.VisualStudio.Web.ProjectSystem.Telemetry.ITelemetryProvider
</description>
<description>SetSite failed for package [DNX Project System](null)</description>
Update 2: I found another webpage detailing the same type of problem, only during the preview period, here:
Cannot Create ASP.NET Core RC 2 web project in VS 2015. It has a screenshot of the same error message.
One troubleshooting step was to post the Help/About content, it is available on my public Dropbox here.
Update 3: OK, the website above mentions that devenv.exe.config
was missing a reference to the dll in question. I checked mine and sure enough it was missing. I did not try to manually add it yet, opting to rerun devenv /setup
but now I'm noticing that this does not complete.
I renamed the config file first, and then reran devenv /config, it has been running for 2.5 minutes now and doesn't seem to have any motivation to complete.
Update 4: Manually editing the config file and adding the dotnet.wizard package made Visual Studio able to create the project, but it was still not able to open it, still complaining about the DNX package.
I will try some of the troubleshooting tips in that other forumthread and see if they help.
I ran into a similar issue and was able to fix it by:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\DNX
folder that was left from a previous version of the tools.%LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
%LocalAppData%\Microsoft\VisualStudio\14.0\devenv.exe.config
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With