-
Notifications
You must be signed in to change notification settings - Fork 5.1k
strong signed build tools assemblies. Creating a new target for devop… #5076
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <PropertyGroup> | ||
| <IsBuildToolsProject>true</IsBuildToolsProject> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition=" '$(IsBuildToolsProject)' == 'true' "> | ||
| <SignAssembly>true</SignAssembly> | ||
| <DelaySign>false</DelaySign> | ||
| <AssemblyOriginatorKeyFile>$(LibraryToolsFolder)\BuildTools.snk</AssemblyOriginatorKeyFile> | ||
| </PropertyGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,11 +256,15 @@ | |
| <Exec Command="dotnet test -f $(NetFx461) %(net452TestProj.Identity) -l trx;LogFileName=$(LibraryRoot)TestResults\$(NetFx461)\%(net452TestProj.Filename).trx /nodeReuse:false" Condition="@(net461TestProj) != ''" ContinueOnError="false" WorkingDirectory="%(net461TestProj.RootDir)%(net461TestProj.Directory)" /> | ||
| </Target> | ||
|
|
||
| <Target Name="PackgNugetBootStrap" DependsOnTargets="Package;SignNugetPackage"> | ||
|
|
||
| </Target> | ||
| <!-- | ||
| This target is primarily being used by DevOps pipeline scenario for data plan which is using VSO tasks to sign. | ||
| So this target assumes build outputs are already generated and would simply like to package the | ||
| signed artificats (without rebuilding) | ||
| NOTE: This package cannot be used independently, will get an error as build outputs are not generated. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume you meant "This package" -> "This target".
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @weshaggard @kurtzeborn I have made one minor change and added a new target so that it can be used without affecting existing linked targets.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My comment was talking about the typo where I think you wanted to say "target" and not "package". |
||
| --> | ||
| <Target Name="PackageNoBuild" DependsOnTargets="CategorizeProjects;Package" /> | ||
|
|
||
| <Target Name="Package" DependsOnTargets="CategorizeProjects"> | ||
| <Target Name="Package"> | ||
| <Message Text="Packaging..... @(net452SDKProj);@(netStd14SDKProj);@(nonSdkProject)" /> | ||
| <Message Text="PackageOutputDir....... $(BuiltPackageOutputDir)" /> | ||
| <PropertyGroup> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is TargetFramework getting set to net46 now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite follow the "where" part.
If you are wondering why are we targeting .NET 46, then all our build tools are targeting net 46 and above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The where question is because you removed this property from this project so I was curious where it is getting set now.