dotnet / project-system

The .NET Project System for Visual Studio
MIT License
969 stars 387 forks source link

Get two errors when you create a project before restoring #420

Closed davkean closed 7 years ago

davkean commented 8 years ago
Error       The OutputPath property is not set for project 'ConsoleApplication7.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='AnyCPU'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.   ConsoleApplication7 C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 729 
Error   MSB3644 The reference assemblies for framework ".NETCoreApp,Version=v1.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.    ConsoleApplication7 C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 1103    
dsplaisted commented 7 years ago

The errors now go away after auto-restore has completed. However, we should probably hide them until that happens, because it's not a great experience to create a new project and immediately see build errors.

srivatsn commented 7 years ago

The design time errors have been fixed. Moreover, once https://github.com/dotnet/sdk/issues/415 is done, this won't be an issue