Skip to content

Commit

Permalink
Updated csproj files:
Browse files Browse the repository at this point in the history
1. Project references are used instead of package references (as the MVC packages will now be released together)
2. Language version fixed to 9.0
3. PackageReleaseNotes fixed
  • Loading branch information
dotnetjunkie committed Dec 3, 2020
1 parent 03fc144 commit 21b2ce2
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Integration library for ASP.NET Core MVC core features for Simple Injector. This includes controller integration.</Description>
<AssemblyTitle>Simple Injector ASP.NET Core MVC Core Integration</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>5.1.1</VersionPrefix>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/5.0.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/v5.1.1</PackageReleaseNotes>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<Authors>Simple Injector Contributors</Authors>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand All @@ -22,14 +22,13 @@
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.0.0" />
<PackageReference Include="SimpleInjector" Version="5.1.0" />
<PackageReference Include="SimpleInjector.Integration.AspNetCore" Version="5.1.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
Expand All @@ -40,6 +39,10 @@
<ItemGroup>
<None Include="..\Graphics\simpleinjector.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SimpleInjector.Integration.AspNetCore\SimpleInjector.Integration.AspNetCore.csproj" />
</ItemGroup>

<Target Name="PostcompileScript" AfterTargets="Build" Condition=" '$(IsCrossTargetingBuild)' != 'true' ">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Integration library for ASP.NET Core MVC view features for Simple Injector. This includes view component integration.</Description>
<AssemblyTitle>Simple Injector ASP.NET Core MVC View Features Integration</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>5.1.1</VersionPrefix>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/5.0.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/v5.1.1</PackageReleaseNotes>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<Authors>Simple Injector Contributors</Authors>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand All @@ -22,7 +22,7 @@
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>
Expand All @@ -31,7 +31,6 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.ViewFeatures" Version="2.0.0" />
<PackageReference Include="SimpleInjector" Version="5.1.0" />
<PackageReference Include="SimpleInjector.Integration.AspNetCore.Mvc.Core" Version="5.1.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
Expand All @@ -43,6 +42,10 @@
<None Include="..\Graphics\simpleinjector.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SimpleInjector.Integration.AspNetCore.Mvc.Core\SimpleInjector.Integration.AspNetCore.Mvc.Core.csproj" />
</ItemGroup>

<Target Name="PostcompileScript" AfterTargets="Build" Condition=" '$(IsCrossTargetingBuild)' != 'true' ">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
</Target>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Integration library for ASP.NET Core MVC for Simple Injector. This package adds tag helper and Razor Pages integration on top of the core functionality.</Description>
<AssemblyTitle>Simple Injector ASP.NET Core MVC Integration</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>5.1.1</VersionPrefix>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/5.0.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/v5.1.1</PackageReleaseNotes>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<Authors>Simple Injector Contributors</Authors>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand All @@ -24,15 +24,14 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.RazorPages" Version="2.0.0" />
<PackageReference Include="SimpleInjector" Version="5.1.0" />
<PackageReference Include="SimpleInjector.Integration.AspNetCore.Mvc.ViewFeatures" Version="5.1.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
Expand All @@ -43,6 +42,10 @@
<ItemGroup>
<None Include="..\Graphics\simpleinjector.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SimpleInjector.Integration.AspNetCore.Mvc.ViewFeatures\SimpleInjector.Integration.AspNetCore.Mvc.ViewFeatures.csproj" />
</ItemGroup>

<Target Name="PostcompileScript" AfterTargets="Build" Condition=" '$(IsCrossTargetingBuild)' != 'true' ">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyTitle>Simple Injector ASP.NET Core Integration</AssemblyTitle>
<NeutralLanguage>en-US</NeutralLanguage>
<VersionPrefix>5.1.1</VersionPrefix>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/5.1.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/simpleinjector/SimpleInjector.Integration.AspNetCore/releases/tag/v5.1.1</PackageReleaseNotes>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<Authors>Simple Injector Contributors</Authors>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
Expand All @@ -24,7 +24,7 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>
<LangVersion>preview</LangVersion>
<LangVersion>9.0</LangVersion>
<Nullable>enable</Nullable>
<PackageReleaseNotes></PackageReleaseNotes>
</PropertyGroup>
Expand Down
35 changes: 35 additions & 0 deletions src/publish2nuget.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF
REM This bat file allows publishing packages to Nuget.
REM Usage:
REM publish2nuget.bat [version] [NuGet API key]

set version=%1
set superSecretApiKey=%2

IF %version%=="" (
ECHO Please supply the version number and API key that should be published to nuget. Example: "%0 1.6.2-beta4 00000000-0000-0000-0000-000000000000"
GOTO :EOF
)
IF %superSecretApiKey%=="" (
ECHO Please supply the version number and API key that should be published to nuget. Example: "%0 1.6.2-beta4 00000000-0000-0000-0000-000000000000"
GOTO :EOF
)

set packageDirectory=Releases\v%version%
set options=%superSecretApiKey% -Verbosity detailed -source https://www.nuget.org/api/v2/package
set nugetexe=..\..\nuget.exe

IF NOT EXIST %packageDirectory% (
ECHO The directory "%packageDirectory%" could not be found.
GOTO :EOF
)

IF NOT EXIST %nugetexe% (
echo %nugetexe% not found. Please download nuget.exe from https://www.nuget.org/nuget.exe.
GOTO :EOF
)

%nugetexe% push %packageDirectory%\*.%version%.nupkg %options%


echo Done!

0 comments on commit 21b2ce2

Please sign in to comment.