Solution build target Project:Task doesn't work
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 133
Description
In some conditions attempt to build solution with target Project:Task doesn't work.
### Steps to reproduce
Reproducible with at least VS 15.8.2
1. Create new Project/Solution using Service Fabric Application template (name it SFApplicationColon) and add there **.Net Framework** Stateless Service when it will ask (or use [sample1.zip](https://github.com/Microsoft/msbuild/files/2341047/sample1.zip))
2. Try to build it using command line msbuild /t:SFApplicationColon:Package
-- it works as expected
3. Right click on SFApplicationColon **project** and select Add -> New Service Fabric Service.. and select
**.Net Core** Stateless Service, build and save all (or use [sample2.zip](https://github.com/Microsoft/msbuild/files/2341048/sample2.zip)).
2. Try to build it again using command line msbuild /t:SFApplicationColon::Package
-- it doesn't work anymore with "Error MSB4057: The target "SFApplicationColon:Package does not exist in the project."
If you'll use attached samples, please start with nuget restore.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by restoring NuGet packages for sample1.zip and sample2.zip, then reproduce the two command-line builds with msbuild /t:SFApplicationColon:Package and msbuild /t:SFApplicationColon::Package. Compare the project state before and after adding the .NET Core Stateless Service; done means the target command works in both cases without MSB4057.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100