-
Notifications
You must be signed in to change notification settings - Fork 859
NETSDK1085 when packing with --no-build #12320
Copy link
Copy link
Closed
Labels
Area-ProjectsAndBuildMSBuild tasks, project files, framework resolutionMSBuild tasks, project files, framework resolutionBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Metadata
Metadata
Assignees
Labels
Area-ProjectsAndBuildMSBuild tasks, project files, framework resolutionMSBuild tasks, project files, framework resolutionBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
When packing an F# project that depends on another project via
ProjectReferencea spuriousBuildis triggered on the base project. This triggers the SDK errorNETSDK1085. It doesn't seem to matter if the project being referenced is an.fsprojor.csproj. In both cases the preojct being referenced will be re-built and trigger the error. Executables being packed as tools don't seem to trigger this behaviour.dotnet new classlib --language F# --name eff -o eff dotnet new classlib --language F# --name gee -o gee dotnet add gee/gee.fsproj reference eff/eff.fsproj dotnet build gee/gee.fsproj && dotnet pack gee/gee.fsproj --no-buildExpected behavior
The project should produce a NuGet package with no errors
Actual behavior
The error
NETSDK1085is reported:Known workarounds
Don't provide the
--no-buildflag when packing.Related information