-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure blob egress extension archives (#3580)
- Loading branch information
1 parent
4100cc6
commit 86e789a
Showing
6 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<AzureBlobStoragePublishTargetFramework>$(LatestTargetFramework)</AzureBlobStoragePublishTargetFramework> | ||
<AzureBlobStoragePublishTargetFramework Condition="'$(TargetFramework)' != ''">$(TargetFramework)</AzureBlobStoragePublishTargetFramework> | ||
<AzureBlobStoragePublishPath>$(ArtifactsDir)pub\dotnet-monitor-egress-azureblobstorage\$(Configuration)\$(AzureBlobStoragePublishTargetFramework)\$(PackageRid)\</AzureBlobStoragePublishPath> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectToPublish Include="$(RepoRoot)src\Extensions\AzureBlobStorage\AzureBlobStorage.csproj"> | ||
<AdditionalProperties>TargetFramework=$(AzureBlobStoragePublishTargetFramework);RuntimeIdentifier=$(PackageRid);PublishDir=$(AzureBlobStoragePublishPath)</AdditionalProperties> | ||
</ProjectToPublish> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<Project> | ||
<!-- Import ProjectToPublish items --> | ||
<Import Project="$(RepositoryEngineeringDir)AzureBlobStorageProjectToPublish.props" /> | ||
<PropertyGroup> | ||
<ArchiveContentRootPath>$(AzureBlobStoragePublishPath)</ArchiveContentRootPath> | ||
</PropertyGroup> | ||
<!-- These items are included in addition to those from publishing the AzureBlobStorage project. --> | ||
<ItemGroup> | ||
<FileToArchive Include="$(RepoRoot)LICENSE.TXT" /> | ||
</ItemGroup> | ||
<!-- Import archive creation from published project --> | ||
<Import Project="$(MSBuildThisFileDirectory)PublishedProjectArchive.targets" /> | ||
</Project> |
21 changes: 21 additions & 0 deletions
21
src/archives/pkgs/AzureBlobStorage/AzureBlobStorage-archive.proj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets"> | ||
<!-- Create dotnet-monitor-egress-azureblobstorage product archive (RID and TFM specific) --> | ||
<PropertyGroup> | ||
<ArchiveName>dotnet-monitor-egress-azureblobstorage</ArchiveName> | ||
<TargetFrameworks>$(ToolTargetFrameworks)</TargetFrameworks> | ||
<RuntimeIdentifiers>$(DefaultRuntimeIdentifiers)</RuntimeIdentifiers> | ||
<IsShipping>true</IsShipping> | ||
</PropertyGroup> | ||
<Import Project="$(RepositoryArchivesDir)AzureBlobStorage.props" /> | ||
<PropertyGroup> | ||
<PublishToDiskDependsOn>$(PublishToDiskDependsOn);UpdateFilesToArchive</PublishToDiskDependsOn> | ||
</PropertyGroup> | ||
<Target Name="UpdateFilesToArchive"> | ||
<ItemGroup> | ||
<!-- Check extension so as to not mark 'dotnet-monitor-egress-azureblobstorage.dll' as executable. --> | ||
<FileToArchive Condition="'%(Filename)%(Extension)' == 'dotnet-monitor-egress-azureblobstorage'"> | ||
<MarkExecutable>true</MarkExecutable> | ||
</FileToArchive> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |
14 changes: 14 additions & 0 deletions
14
src/archives/symbols/AzureBlobStorage/AzureBlobStorage-symbols.proj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.Build.NoTargets"> | ||
<!-- Create dotnet-monitor-egress-azureblobstorage archive symbols package (RID and TFM specific). --> | ||
<PropertyGroup> | ||
<PackageId>azure-blob-egress-archive.$(RuntimeIdentifier)</PackageId> | ||
<!-- | ||
Only include TargetFrameworks if a single TFM is not specified, otherwise nuget pack will include all TFMs in the same package. | ||
Specify all TFMs to restore the project for all of them, but only build the symbols package for a single TFM. | ||
--> | ||
<TargetFrameworks Condition="'$(TargetFramework)' == ''">$(ToolTargetFrameworks)</TargetFrameworks> | ||
<RuntimeIdentifiers>$(DefaultRuntimeIdentifiers)</RuntimeIdentifiers> | ||
<Description>Symbols for the dotnet-monitor-egress-azureblobstorage $(RuntimeIdentifier) archive.</Description> | ||
</PropertyGroup> | ||
<Import Project="$(RepositoryArchivesDir)AzureBlobStorage.props" /> | ||
</Project> |