Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET 5 RC1 Web application template generates beta5 dependencies

$
0
0

I have been struggling to get ASP.NET 5 working with Visual Studio 2015 RC1.
The first time when I installed RC1, my template to create web applications was gone (Web tools options was checked).
I have tried every possible option I thought of or found with google, but I could not get the template back (even with a restore of VS).
Out of frustration I uninstalled everything that had a relation to Visual Studio including registry settings.

I have reinstalled Visual Studio Enterprise 2015 and installed RC1 again and to my relieve the Web Application template was there.
But after executing the template the output was not correct, all dependencies where beta5. 
Here is a fragment from the project.json:

"dependencies": {
"Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta5"
},

"commands": {
"web": "Microsoft.AspNet.Hosting --config hosting.ini"
},

The above looks deprecated, it should use Kestrel instead of IIS.
So I thought lets try to generate asp.net 5 with Yeoman and run this directly with dmx and this worked like a charm.
Then I tried to open that generated code with Visual Studio 2015 and that was no problem.
After adjusting some settings to run with Visual Studio, I've got the following message: 

Could not load type 'Microsoft.Dnx.Host.Clr.EntryPoint' from assembly 'Microsoft.Dnx.Host.Clr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.

Does anybody know how I can fix my ASP.Net web application Tempate, so it generates the correct content for RC1 so it runs without adjustments?
If not, is there an easy way to get the Yeoman output to work with Visual Studio 2015?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>