After installing .NET Core 1.0 with VS2015 tools (preview), I cannot create .NET class class libraries of the main class

I get this error message when I try to add the .NET core class library to my solution:

Error: this template tried to load the component assembly 'Microsoft.VisualStudio.ProjectSystem.DotNet.Wizard, Version = 14.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'. For more information about this issue and how to enable this template, see Documentation for Customizing Project Templates.

An empty folder is created on disk, but nothing is added to the solution.

My initial process consisted of:

  • Visual Studio 2015 Update for Update 3
  • Removing fragments of preview / rc kernel and .NET tools.
  • Download and install the .NET kernel version version using the preview tool

I tried the following after getting this error:

  • Uninstall and reinstall .NET Core
  • Restoring a basic .NET installation.
  • Uninstall and reinstall Visual Studio 2015 Professional with Update 3
    • And then uninstall and reinstall and restore .NET Core again afterwards for a good measure.
  • Running devenv /setup as administrator

I turn off and restart after each step, but do not play dice.

What else can I try? I used to have .NET Core preview bits on my computer, but according to the installation instructions, they are enough to just delete them before installing the release files that I made.

Is there a log file somewhere that might contain information about why the assembly is not loading?

I have two items in my list of removal programs that match "Core":

  • Microsoft.NET Core 1.0.0 - Preview SDK 2 (x64)
  • Microsoft.NET Core 1.0.0 - Preview of VS 2015 Tool 2

I also installed this setup, which seems to have been installed along with the above bits:

  • Microsoft .NET Version Manager (x64) 1.0.0-rc1

All these 3 elements are out of date, as established today. I think the parts of the preview and rc1 are called the result of only the runtime being released as final, but the tool is still in the preview.

I got installation files here - http://dot.net/core - so it seems to me that I should have installed the correct bits.

Updates that are updated under Visual Studio extensions and updates do not exist.


Update 1: I performed a complete repair that did not change anything.

Then I tried to use the command line tool, dotnet , to create a project that worked perfectly, everything from dotnet new to dotnet run completed successfully and with the expected results.

Then I tried to copy 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 to VS2015, and got the following:

The DNX Project System package did not load correctly.
Perhaps the problem is caused by a configuration change or by installing another extension. You can get more information by looking at the file "C: \ Users \ lasse \ AppData \ Roaming \ Microsoft \ VisualStudio \ 14.0 \ ActivityLog.xml".
Restarting Visual Studio may help resolve this issue.

The activity log to which he refers can be found in my public Dropbox (renamed to the .txt extension) here: ActivityLog.xml (.txt) .

Excerpts from this file that may be of interest:

 <description>Performance warning: String load failed. Pkg:{98F77210-A364-4168-BAE6-4D46FA7E19FE} (DNX Project System) LANG:0409 ID:5011&#x000D;&#x000A;</description> <description>LegacySitePackage failed for package [DNX Project System]Source: &apos;System.ComponentModel.Composition&apos; Description: No exports were found that match the constraint: &#x000A;&#x0009;ContractName&#x0009;Microsoft.VisualStudio.Web.ProjectSystem.Telemetry.ITelemetryProvider&#x000A;&#x0009;RequiredTypeIdentity&#x0009;Microsoft.VisualStudio.Web.ProjectSystem.Telemetry.ITelemetryProvider&#x000D;&#x000A;</description> <description>SetSite failed for package [DNX Project System](null)</description> 

Update 2:. I found another webpage describing a problem of the same type only during the preview period:

Unable to 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 help content / content, it is available on my public Dropbox here .


Update 3: OK, the website above mentions that devenv.exe.config missing a link to the corresponding DLL. I checked the mine and, of course, it was missing. I have not tried to manually add it yet, choosing devenv /setup to restart, but now I notice that this is not complete.

First I renamed the configuration file and then re-run devenv / config, it works for 2.5 minutes and does not seem to have any motivation to complete.


Update 4: Manually editing the configuration file and adding the dotnet.wizard package forced Visual Studio to create the project, but it still could not open it, still complaining about the DNX package.

I will try some troubleshooting tips in this other forum and see if they help.

+8
visual-studio-2015 .net-core
source share
2 answers

I ran into a similar problem and was able to fix it:

  • Change Visual Studio 2015 installation and uncheck Microsoft Web Developer Tools
  • Removing the C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\DNX from the previous version of the tools.
  • Removing %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
  • Removing %LocalAppData%\Microsoft\VisualStudio\14.0\devenv.exe.config
  • Perform repair preview tools.
+8
source share

Installing Visual Studio Installer Projects tool helped me

+1
source share

All Articles