-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Sources under a folder named "Packages" are ignored on build #1708
Comments
Your Packages folder below is upper case. |
This is bad and projects have valid folders called https://github.com/NuGetPackageExplorer/NuGetPackageExplorer/tree/master/Core/Packages Please do not put this on the default items list if it's inside the project folder. If it's outside the project folder, which I believe was the intent, that's ok as that was to target the packages.config folder. I think the fix is that the glob needs to be removed. It even has a TODO saying to investigate. sdk/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Sdk.DefaultItems.targets Lines 45 to 46 in d7730b7
|
Yeah, I'm the one who wrote that TODO. The problem is now that we've shipped, that removing that glob could also break projects. However, I've confirmed that this is a break even on case-insensitive file systems. In the 2.0 SDK, code from a So assuming that we keep the current behavior of MSBuild in the 15.5 preview (which I believe was a bug fix), then we would need to weigh the risk of breaking projects by newly excluding code from |
.NET Command Line Tools (15.5.0-preview-007044)
All source files and folders are included in the build, however, a folder named "Packages" is excluded. I've verified this behavior in CLI and VS 15.5 Preview.
Looks like a regression from previous versions (checked in 15.4).
Repro Steps.
Expected. Build failed because Class1.cs is not a valid C# file
Observed. Build succeed because Packages/Class1 is excluded from the build
The text was updated successfully, but these errors were encountered: