I am running ASP.NET5 RC1 UPDATE1. In project.json, my structure is "dnx461". When I try to debug (in IIS Express with DNX_IIS_RUNTIME_FRAMEWORK set to DNX461), I get the following warning:
Warning MSB3274 The main link "C: \ mydll.dll" could not be resolved because it was built as part of ".NETFramework, Version = v4.6.1." This is a higher version than the current target environment is ".NETFramework, Version = v4.5.1." WebTest C: \ Program Files (x86) \ MSBuild \ 14.0 \ bin \ Microsoft.Common.CurrentVersion.targets
"mydll" is the .NET 4.6.1 library. When I try to debug using IIS Express, I get the following output in the debug window:
'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ WINDOWS \ Microsoft.Net \ assembly \ GAC_32 \ mscorlib \ v4.0_4.0.0.0__b77a5c561934e089 \ mscorlib.dll'. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded "Microsoft.Dnx.Host.Clr". Cannot find or open the PDB file. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ WINDOWS \ Microsoft.Net \ assembly \ GAC_MSIL \ System \ v4.0_4.0.0.0__b77a5c561934e089 \ System.dll'. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ WINDOWS \ Microsoft.Net \ assembly \ GAC_MSIL \ System.Configuration \ v4.0_4.0.0.0bb3f5f7f11d50a3a \ System.Configuration.dll'. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ WINDOWS \ Microsoft.Net \ assembly \ GAC_MSIL \ System.Core \ v4.0_4.0.0.0__b77a5c561934e089 \ System.Core.dll'. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.Host .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ WINDOWS \ Microsoft.Net \ assembly \ GAC_MSIL \ System.Xml \ v4.0_4.0.0.0__b77a5c561934e089 \ System.Xml.dll'. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Extensions.PlatformAbstractions .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.Loader .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.ApplicationHost .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.Runtime .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.Compilation .dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. 'dnx.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C: \ Users \ devuser.dnx \ runtimes \ dnx-clr-win-x86.1.0.0-rc1-update1 \ bin \ Microsoft.Dnx.Compilation .Abstractions.dll. Missing download symbols. The module is optimized and the debugger parameter "Only my code" is enabled. The program '[16968] dnx.exe' exited with code 1 (0x1). Program '[16968] dnx.exe: Program Trace' exited with code 0 (0x0). The program "[20612] iisexpress.exe: Program Trace" exited with code 0 (0x0). The program '[20612] iisexpress.exe' exited with the code -1 (0xffffffff).
I am using VS2015 with Update 1. How to fix this?
source share