ASP.NET VNext Debug MVC Source

I followed Imran Baloch's blog where it shows how you can debug ASP.Net MVC VNext.

I used VM in Azure where Vs 2014 is installed. enter image description here

I created a global solutions folder and put the global.json file in it, where I specified the folder containing the current MVC source, cloned from https://github.com/aspnet/Mvc/tree/dev/src . When I try to compile a solution, I get a lot of errors due to missing links.

enter image description here

Has anyone tried the method suggested by the blog? What am I doing wrong?

+7
c # asp.net-mvc asp.net-core
source share
4 answers

I am shooting blindly here because adding sources to global.json is great for me.

Try adding the NuGet.config file to your solution with the following contents:

<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/" /> <add key="NuGet.org" value="https://nuget.org/api/v2/" /> </packageSources> </configuration> 

Also try doing kpm restore in the root of your solutions folder.

If this does not help, add a little more information, for example, the KRE version, which is located in the <user profile>\.kre or <user profile>\.kpm

+8
source share

add ' http://www.myget.org/F/aspnetvnext/api/v2 ' to tools -> options -> nuget package manager -> package sources

enter image description here

+2
source share

I just ran: git clone https://github.com/aspnet/Mvc.git kvm update kpm recovery

Then I opened the mvc solution in vs2014 ctp2 and it was open and compiled correctly. I think your project.json has version numbers that do not match the version numbers used in your cloned version of mvc. Some time ago, Microsoft changed version numbers.

The cloned version of mvc on my mailbox uses the version of Microsoft.AspNet.FileSystems version 1.0.0- *, which is not included in the mvc source and is a link to the package. He also used the version of Miccrosoft.AspNet.Mvc.Common "", which is a link to the source code. You can try to customize your project.json to match the numbers.

NTN, Bart

+1
source share

And, to answer your question, you may need to read this article:

http://blogs.msdn.com/b/webdev/archive/2015/02/06/debugging-asp-net-5-framework-code-using-visual-studio-2015.aspx

Mixing different versions (yes, ASP.NET 5 / MVC 6 is still the driving target!) Can lead to very unpleasant results. Read and watch.

0
source share

All Articles