-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from volosoft/netstandard
Netstandard
- Loading branch information
Showing
10 changed files
with
103 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Paths | ||
$packFolder = (Get-Item -Path "./" -Verbose).FullName | ||
$slnPath = Join-Path $packFolder "../" | ||
$srcPath = Join-Path $slnPath "src" | ||
|
||
# List of projects | ||
$projects = ( | ||
"Castle.LoggingFacility.MsLogging" | ||
) | ||
|
||
# Rebuild solution | ||
Set-Location $slnPath | ||
& dotnet msbuild /t:Rebuild /p:Configuration=Release | ||
|
||
# Copy all nuget packages to the pack folder | ||
foreach($project in $projects) { | ||
|
||
$projectFolder = Join-Path $srcPath $project | ||
|
||
# Create nuget pack | ||
Set-Location $projectFolder | ||
& dotnet msbuild /t:pack /p:Configuration=Release /p:IncludeSymbols=true | ||
|
||
# Copy nuget package | ||
$projectPackPath = Join-Path $projectFolder ("/bin/Release/" + $project + ".*.nupkg") | ||
Move-Item $projectPackPath $packFolder | ||
|
||
} | ||
|
||
# Go back to the pack folder | ||
Set-Location $packFolder |
44 changes: 44 additions & 0 deletions
44
src/Castle.LoggingFacility.MsLogging/Castle.LoggingFacility.MsLogging.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>2.0.0</VersionPrefix> | ||
<TargetFrameworks>net452;netstandard1.5</TargetFrameworks> | ||
<AssemblyName>Castle.LoggingFacility.MsLogging</AssemblyName> | ||
<PackageId>Castle.LoggingFacility.MsLogging</PackageId> | ||
<PackageTags>Castle;Logging;Extensions</PackageTags> | ||
<PackageProjectUrl>https://github.com/volosoft/castle-logging-ms-adapter</PackageProjectUrl> | ||
<PackageLicenseUrl>https://github.com/volosoft/castle-logging-ms-adapter/blob/master/LICENSE</PackageLicenseUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/volosoft/castle-logging-ms-adapter</RepositoryUrl> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Update="bin\Release\net452\Castle.LoggingFacility.MsLogging.pdb"> | ||
<PackagePath>lib/net452/</PackagePath> | ||
<Pack>true</Pack> | ||
</None> | ||
<None Update="bin\Release\netstandard1.5\Castle.LoggingFacility.MsLogging.pdb"> | ||
<PackagePath>lib/netstandard1.5/</PackagePath> | ||
<Pack>true</Pack> | ||
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.5' "> | ||
<PackageReference Include="Fortress.Facilities.Logging" Version="0.5.265" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> | ||
<Reference Include="System.Runtime" /> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<PackageReference Include="Castle.LoggingFacility" Version="3.4.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
21 changes: 0 additions & 21 deletions
21
src/Castle.LoggingFacility.MsLogging/Castle.LoggingFacility.MsLogging.xproj
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...gFacility.MsLogging.TestConsoleApp/Castle.LoggingFacility.MsLogging.TestConsoleApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<VersionPrefix>1.1.0</VersionPrefix> | ||
<TargetFramework>net461</TargetFramework> | ||
<AssemblyName>Castle.LoggingFacility.MsLogging.TestConsoleApp</AssemblyName> | ||
<OutputType>Exe</OutputType> | ||
<PackageId>Castle.LoggingFacility.MsLogging.TestConsoleApp</PackageId> | ||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> | ||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute> | ||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Castle.LoggingFacility.MsLogging\Castle.LoggingFacility.MsLogging.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' "> | ||
<Reference Include="System" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
</ItemGroup> | ||
|
||
</Project> |
21 changes: 0 additions & 21 deletions
21
...ngFacility.MsLogging.TestConsoleApp/Castle.LoggingFacility.MsLogging.TestConsoleApp.xproj
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
test/Castle.LoggingFacility.MsLogging.TestConsoleApp/project.json
This file was deleted.
Oops, something went wrong.