Skip to content

Commit c5d14c5

Browse files
authored
Add README and license to package (#7)
1 parent 26084f0 commit c5d14c5

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

DotAzure/DotAzure.csproj

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>0.1.0</Version>
3+
<Version>0.1.1</Version>
44
<Description>Load environment variables from Azure Developer CLI environment</Description>
55
<Authors>
66
Heath Stewart (https://github.com/heaths)
77
</Authors>
8+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
9+
<PackageReadmeFile>README.md</PackageReadmeFile>
810
</PropertyGroup>
911
<PropertyGroup>
1012
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
@@ -16,9 +18,12 @@
1618
<PackageReference Include="dotenv.net" Version="4.0.0" />
1719
<PackageReference Include="System.Text.Json" Version="9.0.8" />
1820
</ItemGroup>
19-
<Target Name="WriteBuildGitHubOutput" AfterTargets="Build" >
21+
<ItemGroup>
22+
<None Include="../README.md" Pack="true" PackagePath="/" />
23+
</ItemGroup>
24+
<Target Name="WriteBuildGitHubOutput" AfterTargets="Build">
2025
<ItemGroup>
21-
<_Variable Include="TargetName=$(TargetName)" Condition="'$(TargetFramework)' == 'net8.0'"/>
26+
<_Variable Include="TargetName=$(TargetName)" Condition="'$(TargetFramework)' == 'net8.0'" />
2227
</ItemGroup>
2328
<WriteLinesToFile
2429
Condition="'$(GITHUB_OUTPUT)' != ''"
@@ -27,10 +32,10 @@
2732
Overwrite="false"
2833
/>
2934
</Target>
30-
<Target Name="WritePackGitHubOutput" AfterTargets="Pack" >
35+
<Target Name="WritePackGitHubOutput" AfterTargets="Pack">
3136
<ItemGroup>
32-
<_Variable Include="PackageId=$(PackageId)"/>
33-
<_Variable Include="PackageVersion=$(PackageVersion)"/>
37+
<_Variable Include="PackageId=$(PackageId)" />
38+
<_Variable Include="PackageVersion=$(PackageVersion)" />
3439
</ItemGroup>
3540
<WriteLinesToFile
3641
Condition="'$(GITHUB_OUTPUT)' != ''"

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ Locate and load environment variables defined when provisioning an [Azure Develo
77

88
## Getting Started
99

10+
Add a package reference to [`DotAzure`](https://www.nuget.org/packages/DotAzure) for .NET SDK-style projects:
11+
12+
```sh
13+
dotnet add package DotAzure
14+
```
15+
1016
If you do not already have an [Azure Developer CLI] (azd) project, you can create one:
1117

1218
```sh

0 commit comments

Comments
 (0)