Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit d10ca11

Browse files
committed
Migrate to dotnet sdk
1 parent 775628e commit d10ca11

File tree

7 files changed

+60
-144
lines changed

7 files changed

+60
-144
lines changed

Build.bat

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
@rem ..\..\tools\nuget pack
2-
@nuget pack Unity.Wcf\Unity.Wcf.csproj -properties Configuration=Release -symbols -build -OutputDirectory bin %*
1+
@rem nuget pack Unity.Wcf\Unity.Wcf.csproj -properties Configuration=Release -symbols -build -OutputDirectory bin %*
32

4-
@rem pause
3+
@echo off
4+
5+
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
6+
set InstallDir=%%i
7+
)
8+
9+
if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
10+
"%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" Unity.Wcf.sln /nologo /p:Configuration=Release /m /v:m %*
11+
)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
## [Unreleased]
88
### Changed
99
- Migrated Unity to Unity.Container 5.0.0
10+
- Migrated to dotnet sdk
1011

1112

1213
## [3.0.0] - 2017-08-18

Unity.Wcf/Properties/AssemblyInfo.cs

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

Unity.Wcf/Unity.Wcf.csproj

Lines changed: 49 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,49 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProductVersion>8.0.30703</ProductVersion>
7-
<SchemaVersion>2.0</SchemaVersion>
8-
<ProjectGuid>{8D78E387-BD71-4399-8A8E-6AE0DC8600F6}</ProjectGuid>
9-
<OutputType>Library</OutputType>
10-
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>Unity.Wcf</RootNamespace>
12-
<AssemblyName>Unity.Wcf</AssemblyName>
13-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
14-
<FileAlignment>512</FileAlignment>
15-
<TargetFrameworkProfile />
16-
</PropertyGroup>
17-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
<Prefer32Bit>false</Prefer32Bit>
26-
</PropertyGroup>
27-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
<Prefer32Bit>false</Prefer32Bit>
35-
</PropertyGroup>
36-
<PropertyGroup>
37-
<SignAssembly>true</SignAssembly>
38-
</PropertyGroup>
39-
<PropertyGroup>
40-
<AssemblyOriginatorKeyFile>Unity.Wcf.snk</AssemblyOriginatorKeyFile>
41-
</PropertyGroup>
42-
<ItemGroup>
43-
<Reference Include="System" />
44-
<Reference Include="System.Core" />
45-
<Reference Include="System.ServiceModel" />
46-
<Reference Include="System.ServiceModel.Activation" />
47-
<Reference Include="System.Xml.Linq" />
48-
<Reference Include="System.Data.DataSetExtensions" />
49-
<Reference Include="Microsoft.CSharp" />
50-
<Reference Include="System.Data" />
51-
<Reference Include="System.Xml" />
52-
</ItemGroup>
53-
<ItemGroup>
54-
<Compile Include="Properties\AssemblyInfo.cs" />
55-
<Compile Include="UnityContractBehavior.cs" />
56-
<Compile Include="UnityInstanceContextExtension.cs" />
57-
<Compile Include="UnityInstanceContextInitializer.cs" />
58-
<Compile Include="UnityInstanceProvider.cs" />
59-
<Compile Include="UnityServiceHost.cs" />
60-
<Compile Include="UnityServiceHostFactory.cs" />
61-
</ItemGroup>
62-
<ItemGroup>
63-
<None Include="content\WcfServiceFactory.cs.pp" />
64-
<None Include="Unity.Wcf.nuspec" />
65-
<None Include="Unity.Wcf.snk" />
66-
</ItemGroup>
67-
<ItemGroup>
68-
<None Include="content\Unity.Wcf.README.txt" />
69-
</ItemGroup>
70-
<ItemGroup>
71-
<PackageReference Include="Unity.Container">
72-
<Version>5.0.0</Version>
73-
</PackageReference>
74-
</ItemGroup>
75-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
76-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
77-
Other similar extension points exist, see Microsoft.Common.targets.
78-
<Target Name="BeforeBuild">
79-
</Target>
80-
<Target Name="AfterBuild">
81-
</Target>
82-
-->
83-
</Project>
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project Sdk="Microsoft.NET.Sdk">
3+
<PropertyGroup>
4+
<PackageId>Unity.Wcf</PackageId>
5+
<Description>Unity.Wcf is a library that allows simple Integration of Microsoft's Unity IoC container with WCF. This project includes a bespoke InstanceProvider that creates a child container per client connection and disposes of all registered IDisposable instances once the connection is terminated.</Description>
6+
<Version>4.0.0</Version>
7+
<AssemblyVersion>4.0.0.0</AssemblyVersion>
8+
<FileVersion>4.0.0.0</FileVersion>
9+
<Copyright>Copyright © DevTrends 2012</Copyright>
10+
<PackageProjectUrl>https://github.com/ViceIce/unity.wcf</PackageProjectUrl>
11+
<RepositoryUrl>https://github.com/ViceIce/unity.wcf</RepositoryUrl>
12+
<PackageLicenseUrl>https://github.com/ViceIce/unity.wcf/blob/master/LICENSE</PackageLicenseUrl>
13+
<PackageIconUrl></PackageIconUrl>
14+
<RepositoryType>git</RepositoryType>
15+
<PackageReleaseNotes></PackageReleaseNotes>
16+
<Authors>Paul Hiles, Michael Kriese</Authors>
17+
<PackageTags>wcf unity ioc di</PackageTags>
18+
<RootNamespace>Unity.Wcf</RootNamespace>
19+
<Configurations>Debug;Release</Configurations>
20+
</PropertyGroup>
21+
<PropertyGroup>
22+
<SignAssembly>true</SignAssembly>
23+
<AssemblyOriginatorKeyFile>Unity.Wcf.snk</AssemblyOriginatorKeyFile>
24+
<TargetFrameworks>net45</TargetFrameworks>
25+
</PropertyGroup>
26+
27+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
28+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
29+
<PackageOutputPath>$(SolutionDir)bin</PackageOutputPath>
30+
</PropertyGroup>
31+
32+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
33+
<DebugType>Full</DebugType>
34+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
35+
</PropertyGroup>
36+
37+
<ItemGroup>
38+
<Content Include="Unity.Wcf.README.txt" />
39+
<Content Include="WcfServiceFactory.cs.pp" />
40+
</ItemGroup>
41+
42+
<ItemGroup>
43+
<Reference Include="System.ServiceModel" />
44+
<Reference Include="System.ServiceModel.Activation" />
45+
<PackageReference Include="Unity.Container">
46+
<Version>5.0.0</Version>
47+
</PackageReference>
48+
</ItemGroup>
49+
</Project>

Unity.Wcf/Unity.Wcf.nuspec

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

0 commit comments

Comments
 (0)