Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions DotAzure/DotAzure.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>0.1.0</Version>
<Version>0.1.1</Version>
<Description>Load environment variables from Azure Developer CLI environment</Description>
<Authors>
Heath Stewart (https://github.com/heaths)
</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
Expand All @@ -16,9 +18,12 @@
<PackageReference Include="dotenv.net" Version="4.0.0" />
<PackageReference Include="System.Text.Json" Version="9.0.8" />
</ItemGroup>
<Target Name="WriteBuildGitHubOutput" AfterTargets="Build" >
<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="/" />
</ItemGroup>
<Target Name="WriteBuildGitHubOutput" AfterTargets="Build">
<ItemGroup>
<_Variable Include="TargetName=$(TargetName)" Condition="'$(TargetFramework)' == 'net8.0'"/>
<_Variable Include="TargetName=$(TargetName)" Condition="'$(TargetFramework)' == 'net8.0'" />
</ItemGroup>
<WriteLinesToFile
Condition="'$(GITHUB_OUTPUT)' != ''"
Expand All @@ -27,10 +32,10 @@
Overwrite="false"
/>
</Target>
<Target Name="WritePackGitHubOutput" AfterTargets="Pack" >
<Target Name="WritePackGitHubOutput" AfterTargets="Pack">
<ItemGroup>
<_Variable Include="PackageId=$(PackageId)"/>
<_Variable Include="PackageVersion=$(PackageVersion)"/>
<_Variable Include="PackageId=$(PackageId)" />
<_Variable Include="PackageVersion=$(PackageVersion)" />
</ItemGroup>
<WriteLinesToFile
Condition="'$(GITHUB_OUTPUT)' != ''"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Locate and load environment variables defined when provisioning an [Azure Develo

## Getting Started

Add a package reference to [`DotAzure`](https://www.nuget.org/packages/DotAzure) for .NET SDK-style projects:

```sh
dotnet add package DotAzure
```

If you do not already have an [Azure Developer CLI] (azd) project, you can create one:

```sh
Expand Down
Loading