Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix missing project error in official build#21767

Merged
sbomer merged 5 commits intodotnet:masterfrom
sbomer:fixBuild
Jan 7, 2019
Merged

Fix missing project error in official build#21767
sbomer merged 5 commits intodotnet:masterfrom
sbomer:fixBuild

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Jan 2, 2019

Since picking up dotnet/arcade#1567, our official builds have been broken because they use arcade to restore some tasks and sign in cases where we don't specify a project to build. From https://dnceng.visualstudio.com/internal/_build/results?buildId=64720:

2019-01-02T13:08:11.9115670Z ./eng/common/build.sh /p:DotNetPublishToBlobFeed=true --ci --restore
2019-01-02T13:08:11.9158940Z [command]/bin/bash --noprofile --norc /Users/vsts/agent/2.144.0/work/_temp/0d24fa91-087e-4035-ac08-2b2f050d222a.sh
2019-01-02T13:08:13.3110000Z /Users/vsts/.dotnet/sdk/2.2.101/MSBuild.dll /noconsolelogger /nologo -maxcpucount /m -verbosity:m /v:minimal /bl:/Users/vsts/agent/2.144.0/work/1/s/artifacts/log/Debug/ToolsetRestore.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:__ToolsetLocationOutputFile=/Users/vsts/agent/2.144.0/work/1/s/artifacts/toolset/1.0.0-beta.18629.1.txt /t:__WriteToolsetLocation /warnaserror /Users/vsts/agent/2.144.0/work/1/s/artifacts/toolset/restore.proj
2019-01-02T13:08:17.1799150Z /Users/vsts/.dotnet/sdk/2.2.101/MSBuild.dll /nologo -maxcpucount /m -verbosity:m /v:minimal /bl:/Users/vsts/agent/2.144.0/work/1/s/artifacts/log/Debug/Build.binlog /clp:Summary /nr:false /p:TreatWarningsAsErrors=true /p:Configuration=Debug /p:RepoRoot=/Users/vsts/agent/2.144.0/work/1/s /p:Restore=true /p:Build=false /p:Rebuild=false /p:Test=false /p:Pack=false /p:IntegrationTest=false /p:PerformanceTest=false /p:Sign=false /p:Publish=false /p:ContinuousIntegrationBuild=true /p:DotNetPublishToBlobFeed=true /warnaserror /Users/vsts/agent/2.144.0/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.18629.1/tools/Build.proj
2019-01-02T13:08:17.5106090Z /Users/vsts/agent/2.144.0/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.18629.1/tools/Build.proj(100,5): error : No projects were found to build. Either the 'Projects' property or 'ProjectToBuild' item group must be specified.
2019-01-02T13:08:17.5293110Z 

The arcade change now requires a project to be specified, so empty.proj will serve this purpose until we set up an actual project as the arcade entry point.

publishing to blob feeds, but it requires a project file that
imports nuget restore targets to be specified for this to
work. See details in
https://github.com/dotnet/arcade/commit/f657be5cb7cd4920334dd9162173b131211a1e17#r31728598.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there ever any reason this project will no longer be needed? That would be helpful if it would be easy for someone to determine it can be removed in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go away as part of the remaining arcade onboarding process since we'll always be building with a project file (if we are able to follow the recommended model - if not, we may want to ask the eng team to give us an option that allows us to restore without an empty project). dotnet/arcade#1633 provides a partial opt-out for the new behavior, but doesn't quite suffice for us.

@sbomer sbomer merged commit c0d7784 into dotnet:master Jan 7, 2019
sandreenko pushed a commit to sandreenko/coreclr that referenced this pull request Jan 8, 2019
In response to dotnet/arcade#1567.
This uses an empty project to work around the new behavior that requires a project file even for restore operations.
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
In response to dotnet/arcade#1567.
This uses an empty project to work around the new behavior that requires a project file even for restore operations.

Commit migrated from dotnet/coreclr@c0d7784
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants