Skip to content

Adding a new project configuration leads to build error #527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
natidea opened this issue Oct 3, 2016 · 4 comments · Fixed by dotnet/sdk#351
Closed

Adding a new project configuration leads to build error #527

natidea opened this issue Oct 3, 2016 · 4 comments · Fixed by dotnet/sdk#351
Assignees

Comments

@natidea
Copy link
Contributor

natidea commented Oct 3, 2016

Repro:

  • Create a New .NETCore Console Application
  • Ensure it restores and builds successfully for both Debug and Release configurations
  • Use Debug|Release selector to Open Configuration Manager
  • Under Active Solution configuration, choose <New...>
  • Enter new configuration name (e.g. Wallaby) and Copy Settings From Debug
  • Rebuild solution

Expected:

  • Successful build

Actual

  • Build Error:
Error       The OutputPath property is not set for project 'ConsoleApplication3.csproj'.  
Please check to make sure that you have specified a valid combination of Configuration 
and Platform for this project.  Configuration='Wallaby'  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.
    ConsoleApplication3 
C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 731 
@natidea natidea added the Bug label Oct 3, 2016
@mavasani
Copy link
Contributor

mavasani commented Oct 3, 2016

What happens if you restore again and try to rebuild?

@natidea
Copy link
Contributor Author

natidea commented Oct 4, 2016

Restore works fine, (actually rebuild triggers the restore), but build fails. This comment by @nguerrera may point to the problem:

Our targets specify OutputPath for release and debug, but nothing else.

@davkean
Copy link
Member

davkean commented Oct 4, 2016

Yeah, this is the problem with the implicit configurations - someone really needs to sit down and design how these are going to work and how users are going to add/remove/rename configurations.

@nguerrera
Copy link
Contributor

This will be "fixed" shortly in SDK. But work remains to actually manage the configurations. That will be tracked by #694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants