Skip to content

Commit

Permalink
Merge pull request #23 from IowaComputerGurus/feature/net6
Browse files Browse the repository at this point in the history
Updated to .NET 6 and fixed documentation
  • Loading branch information
mitchelsellers authored Dec 7, 2021
2 parents 8ed336b + 384d2e6 commit 905dd95
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Ensure .NET Installed
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Ensure .NET Installed
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Install GitVersion
run: dotnet tool install --global GitVersion.Tool
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@ This project provides a number of helpful wrappers around the Microsoft Azure St

Install from NuGet

```
``` powershell
Install-Package ICG.AspNetCore.Utilities.CloudStorage
```
### Register Dependencies

Inside of of your project's Startus.cs within the RegisterServices method add this line of code.

```
``` c#
services.UseIcgNetCoreUtilities(Configuration);
services.UseIcgAspNetCoreUtilitiesCloudStorage();
```


## Configure

Lastly, before using you will need to configure your storage options. An example configuation is below.

```
``` json
"AzureCloudStorageOptions": {
"StorageConnectionString": "<Your Storage Connection String>",
"RootClientPath": "<Either your CDN Endpoint, or Path to Blob >",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>

<IsPackable>false</IsPackable>

Expand All @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<Version>0.0.0</Version>
</PropertyGroup>

<PropertyGroup>
<PackageId>ICG.AspNetCore.Utilities.CloudStorage</PackageId>
<Title>AspNetCore Utilities CloudStorage</Title>
Expand All @@ -23,7 +19,7 @@
</PropertyGroup>

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>ICG.AspNetCore.Utilities.CloudStorage</RootNamespace>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -42,9 +38,9 @@

<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
<PackageReference Include="ICG.NetCore.Utilities" Version="5.1.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PackageReference Include="ICG.NetCore.Utilities" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down

0 comments on commit 905dd95

Please sign in to comment.