visual studio 2015 - Failed to make the following project runnable (Object reference not set to an instance of an object.) -


when create default web project in visual studio 2015 (update 3) installed .net core 1.0 sdk , tooling (preview 2) , restart visual studio after reverting local source control changes getting following compilation error:

failed make following project runnable: mydefaultwebproject (.netcoreapp,version=v1.0) reason: object reference not set instance of object.

according visual studio error located in c:\program files (x86)\msbuild\microsoft\visualstudio\v14.0\dotnet\microsoft.dotnet.common.targets on line 262

on line there following code:

<dnx   runtimeexe="$(sdktoolingexe)"   condition="'$(_designtimehostbuild)' != 'true'"   projectfolder="$(msbuildprojectdirectory)"   arguments="$(_buildarguments)"   /> 

how can fix such problem?

the working solution managed find run dotnet restore command:

c:\dev\*****>dotnet restore  welcome .net core! --------------------- learn more .net core @ https://aka.ms/dotnet-docs. use dotnet --help see available commands or go https://aka.ms/dotnet-cli-docs. telemetry -------------- .net core tools collect usage data in order improve experience. data anonymous , not include commandline arguments. data collected microsoft , shared community. can opt out of telemetry setting dotnet_cli_telemetry_optout environment variable 1 using favorite shell. can read more .net core tools telemetry @ https://aka.ms/dotnet-cli-telemetry. configuring... ------------------- command running populate local package cache, improve restore speed , enable offline access. command take minute complete , happen once. decompressing 100% 2181 ms expanding 100% 9113 ms log  : restoring packages c:\dev\*****\project.json... log  : restoring packages tool 'bundlerminifier.core' in c:\dev\*****\project.json... log  : restoring packages tool 'microsoft.aspnetcore.razor.tools' in c:\dev\*****\project.json... log  : restoring packages tool 'microsoft.aspnetcore.server.iisintegration.tools' in c:\dev\*****\project.json... log  : restoring packages tool 'microsoft.entityframeworkcore.tools' in c:\dev\*****\project.json... log  : restoring packages tool 'microsoft.extensions.secretmanager.tools' in c:\dev\*****\project.json... log  : restoring packages tool 'microsoft.visualstudio.web.codegeneration.tools' in c:\dev\*****\project.json... log  : writing lock file disk. path: c:\dev\*****\project.lock.json log  : c:\dev\*****\project.json log  : restore completed in 13207ms. 

after compilation in visual studio successful again.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -