Skip to content

Source build patches#17417

Merged
sfoslund merged 20 commits into
dotnet:mainfrom
sfoslund:SourceBuildPatches
May 13, 2021
Merged

Source build patches#17417
sfoslund merged 20 commits into
dotnet:mainfrom
sfoslund:SourceBuildPatches

Conversation

@sfoslund
Copy link
Copy Markdown
Member

@sfoslund sfoslund commented May 4, 2021

Fixes #16974
Fixes #16973

@ghost
Copy link
Copy Markdown

ghost commented May 4, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@MichaelSimons
Copy link
Copy Markdown
Member

@sfoslund, Can you please remove the source-build patches and the target that applies them as part of this PR as well? They are no longer needed with these changes.

@sfoslund
Copy link
Copy Markdown
Member Author

sfoslund commented May 4, 2021

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines failed to run 1 pipeline(s).

Comment thread .vsts-ci.yml Outdated
@sfoslund sfoslund force-pushed the SourceBuildPatches branch from 1563809 to 25533b7 Compare May 4, 2021 20:58
@sfoslund sfoslund force-pushed the SourceBuildPatches branch from 25533b7 to 80fdaf4 Compare May 4, 2021 21:02
Comment thread source-build.slnf

<Target Name="PublishNetSdks"
BeforeTargets="Build">
<ItemGroup>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why websdk is singled out

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't know, @MichaelSimons do you?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems like it would be preferable to have project references to these from redist.csproj (with ReferenceOutputAssembly set to false).

@sfoslund
Copy link
Copy Markdown
Member Author

sfoslund commented May 4, 2021

error MSB4018: The "ResolvePackageAssets" task failed unexpectedly. [C:\code\sdk\artifacts\tmp\Debug\When_app_proj---CDDE0EAB\Test\XUnitTestProject.csproj]
error MSB4018: System.MissingMethodException: Method not found: 'NuGet.Versioning.NuGetVersion NuGet.ProjectModel.LockFileTargetLibrary.get_Version()'.

One of the dotnet tool tests is failing with an odd error that I haven't been able to debug, @wli3 do you know what this could be?

@sfoslund
Copy link
Copy Markdown
Member Author

sfoslund commented May 5, 2021

@MichaelSimons we're seeing test failures because of the dotent-hello test packages that are removed. Why do they need to be removed? Source build doesn't deal with test assets anyways, does it?

@MichaelSimons
Copy link
Copy Markdown
Member

Why do they need to be removed? Source build doesn't deal with test assets anyways, does it?

They don't need to be removed, they just need to be excluded from source-build. I can't answer why they were removed because yes, source-build doesn't deal with tests. Maybe add them back we will see what prebuilts if any are added and we can address it at that time when we have the full context.

Comment thread src/Layout/redist/targets/GenerateLayout.targets
Comment thread src/Layout/toolset-tasks/toolset-tasks.csproj
Comment thread src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props
Comment thread src/Tests/ArgumentForwarding.Tests/ArgumentForwarding.Tests.csproj Outdated
@sfoslund
Copy link
Copy Markdown
Member Author

sfoslund commented May 6, 2021

/__w/1/s/artifacts/source-build/self/src/source-build.slnf(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

@MichaelSimons all legs but the source build leg seem to be okay. Have you seen this before? We started getting this error with 45b7b2b but I'm not sure how that could be causing it.


<Target Name="PublishNetSdks"
BeforeTargets="Build">
<ItemGroup>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems like it would be preferable to have project references to these from redist.csproj (with ReferenceOutputAssembly set to false).

Comment thread src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.props
@sfoslund
Copy link
Copy Markdown
Member Author

/__w/1/s/artifacts/source-build/self/src/source-build.slnf(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

@MichaelSimons Michael Simons (.NET) FTE all legs but the source build leg seem to be okay. Have you seen this before? We started getting this error with 45b7b2b but I'm not sure how that could be causing it.

Ping @MichaelSimons do you have any thoughts here?

@MichaelSimons
Copy link
Copy Markdown
Member

@sfoslund - Sorry I've been oof for a few days. I'm catching up and will take a look this afternoon.

@MichaelSimons
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@MichaelSimons
Copy link
Copy Markdown
Member

@sfoslund - Looks like this PR renamed a project which the source-build.slnf needs to respond to. Here are the changes which build locally for me after pulling the latest from main. I am going to log an issue for the build error as it is not helpful at all!

@sfoslund
Copy link
Copy Markdown
Member Author

@MichaelSimons great, thank you!

@sfoslund
Copy link
Copy Markdown
Member Author

@MichaelSimons we're green, does everything look okay to you to merge?

@MichaelSimons
Copy link
Copy Markdown
Member

@MichaelSimons we're green, does everything look okay to you to merge?

@sfoslund, LGTM - thanks

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 this pull request may close these issues.

ArPow followup: incorporate the .patch files added to the repo ArPow stage 2: implementing source-build CI

9 participants