Skip to content
This repository was archived by the owner on Mar 2, 2023. It is now read-only.

Commit b3558a0

Browse files
committed
Adjusting settings
1 parent 8e3c5a7 commit b3558a0

File tree

3 files changed

+21
-30
lines changed

3 files changed

+21
-30
lines changed

appveyor.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ configuration: Release
33
platform: Any CPU
44

55
install:
6-
- ps: $env:build_version = (Get-Content -Raw -Path package.json | ConvertFrom-Json).version
7-
- ps: $env:build_description = (Get-Content -Raw -Path package.json | ConvertFrom-Json).description
6+
- ps: $env:build_version = (Select-Xml -Path ".\src\Unity.Mvc.csproj" -XPath "/Project/PropertyGroup/Version" | Select-Object -ExpandProperty Node).InnerText
87
- ps: Update-AppveyorBuild -Version "$env:build_version.$env:APPVEYOR_BUILD_NUMBER"
98

109
dotnet_csproj:
11-
patch: true
12-
file: '**\*.csproj'
13-
version: $(build_version)
14-
package_version: $(build_version)
10+
patch: false
1511

1612
before_build:
1713
- cmd: dotnet restore
@@ -21,9 +17,15 @@ build:
2117
parallel: true
2218
verbosity: minimal
2319

20+
after_build:
21+
- choco install opencover.portable
22+
- choco install codecov
2423

2524
test_script:
26-
- cmd: dotnet test
25+
- OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --framework net47 --verbosity q"
26+
27+
after_test:
28+
- codecov -f "results.xml"
2729

2830
artifacts:
2931
- path: '**\Unity.*.nupkg'

package.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/Unity.Mvc.csproj

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<Version>5.0.3</Version>
5+
<PackageReleaseNotes>This package is compatible with .NET 4.5 and 4.7 frameworks.</PackageReleaseNotes>
6+
</PropertyGroup>
7+
8+
<PropertyGroup>
9+
<FileVersion>$(Version).0</FileVersion>
10+
<AssemblyVersion>$(Version).0</AssemblyVersion>
11+
<PackageId>Unity.Mvc</PackageId>
412
<Description>Unity for ASP.NET MVC</Description>
5-
<Version>5.0.2</Version>
6-
<AssemblyVersion>5.0.2.0</AssemblyVersion>
7-
<FileVersion>5.0.2.0</FileVersion>
813
<Copyright>Copyright © Microsoft 2008</Copyright>
914
<PackageProjectUrl>https://github.com/unitycontainer/aspnet-mvc</PackageProjectUrl>
1015
<RepositoryUrl>https://github.com/unitycontainer/aspnet-mvc</RepositoryUrl>
1116
<PackageLicenseUrl>https://github.com/unitycontainer/aspnet-mvc/blob/master/LICENSE</PackageLicenseUrl>
1217
<PackageIconUrl>https://avatars1.githubusercontent.com/u/12849707</PackageIconUrl>
1318
<RepositoryType>git</RepositoryType>
14-
<PackageReleaseNotes>This package is compatible with .NET 4.5 and 4.7 frameworks.</PackageReleaseNotes>
15-
<PackageId>Unity.Mvc</PackageId>
1619
<Authors>Microsoft.Practices.Unity</Authors>
1720
<Company>Microsoft.Practices.Unity</Company>
21+
<SignAssembly>true</SignAssembly>
22+
<AssemblyOriginatorKeyFile>package.snk</AssemblyOriginatorKeyFile>
23+
<DelaySign>false</DelaySign>
24+
<RootNamespace>Unity.AspNet.Mvc</RootNamespace>
1825
</PropertyGroup>
1926

2027
<ItemGroup>
@@ -25,12 +32,6 @@
2532
<ItemGroup>
2633
<Reference Include="System.Web" />
2734
</ItemGroup>
28-
29-
<PropertyGroup>
30-
<SignAssembly>true</SignAssembly>
31-
<AssemblyOriginatorKeyFile>package.snk</AssemblyOriginatorKeyFile>
32-
<DelaySign>false</DelaySign>
33-
</PropertyGroup>
3435

3536
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
3637
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -48,10 +49,6 @@
4849
<PackageReference Include="WebActivatorEx" Version="2.2.0" />
4950
</ItemGroup>
5051

51-
<PropertyGroup>
52-
<RootNamespace>Unity.AspNet.Mvc</RootNamespace>
53-
</PropertyGroup>
54-
5552
<PropertyGroup>
5653
<UnityAbstractions>..\..\Abstractions\src\Unity.Abstractions.csproj</UnityAbstractions>
5754
<UnityContainer>..\..\Container\src\Unity.Container.csproj</UnityContainer>

0 commit comments

Comments
 (0)