-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded projects to .NET Core and targeted netstandard2.0 and net452…
…. Updated dependencies to Service Fabric 6.1.456. Package version bumped to 2.0.0.
- Loading branch information
Showing
39 changed files
with
565 additions
and
641 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 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 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 |
---|---|---|
@@ -1,31 +1,34 @@ | ||
environment: | ||
package_semantic_version: 1.1.0 | ||
assembly_semantic_version: 1.1.0 | ||
version: 2.0.0.{build} | ||
|
||
configuration: Release | ||
|
||
version: $(package_semantic_version).{build} | ||
os: Visual Studio 2017 | ||
|
||
environment: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
NUGET_XMLDOC_MODE: skip | ||
|
||
skip_tags: true | ||
|
||
assembly_info: | ||
patch: true | ||
file: '**\AssemblyInfo.*' | ||
assembly_version: '$(assembly_semantic_version).0' | ||
assembly_file_version: '$(appveyor_build_version)' | ||
assembly_informational_version: '$(package_semantic_version)-CI-{build}' | ||
nuget: | ||
disable_publish_on_pr: true | ||
|
||
configuration: Release | ||
clone_depth: 1 | ||
|
||
test: off | ||
|
||
before_build: | ||
- nuget restore | ||
build_script: | ||
- ps: .\build.ps1 | ||
|
||
build: | ||
verbosity: minimal | ||
publish_nuget: true | ||
publish_nuget_symbols: true | ||
artifacts: | ||
- path: artifacts\packages\**\*.nupkg | ||
name: MyGet | ||
|
||
deploy: | ||
- provider: NuGet | ||
server: https://www.myget.org/F/autofac/api/v2/package | ||
api_key: | ||
secure: rCUEY75fXN0wxtMy6QL4jCrLdaYbxIBzIXWeN+wEu/XDpyqimzreOc5AH5jMd5ah | ||
skip_symbols: false | ||
symbol_server: https://www.myget.org/F/autofac/symbols/api/v2/package | ||
artifact: MyGet |
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,50 @@ | ||
######################## | ||
# THE BUILD! | ||
######################## | ||
|
||
param ( | ||
[switch]$Bench = $false | ||
) | ||
|
||
Push-Location $PSScriptRoot | ||
Import-Module $PSScriptRoot\Build\Autofac.Build.psd1 -Force | ||
|
||
$artifactsPath = "$PSScriptRoot\artifacts" | ||
$packagesPath = "$artifactsPath\packages" | ||
$sdkVersion = (Get-Content "$PSScriptRoot\global.json" | ConvertFrom-Json).sdk.version | ||
|
||
# Clean up artifacts folder | ||
if (Test-Path $artifactsPath) { | ||
Write-Message "Cleaning $artifactsPath folder" | ||
Remove-Item $artifactsPath -Force -Recurse | ||
} | ||
|
||
# Install dotnet CLI | ||
Write-Message "Installing .NET Core SDK version $sdkVersion" | ||
Install-DotNetCli -Version $sdkVersion | ||
|
||
# Write out dotnet information | ||
& dotnet --info | ||
|
||
# Set version suffix | ||
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$env:APPVEYOR_REPO_BRANCH -ne $NULL]; | ||
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$env:APPVEYOR_BUILD_NUMBER -ne $NULL]; | ||
$versionSuffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "master" -and $revision -ne "local"] | ||
|
||
Write-Message "Package version suffix is '$versionSuffix'" | ||
|
||
# Package restore | ||
Write-Message "Restoring packages" | ||
Get-DotNetProjectDirectory -RootPath $PSScriptRoot | Restore-DependencyPackages | ||
|
||
# Build/package | ||
Write-Message "Building projects and packages" | ||
Get-DotNetProjectDirectory -RootPath $PSScriptRoot\src | Invoke-DotNetPack -PackagesPath $packagesPath -VersionSuffix $versionSuffix | ||
|
||
# Test | ||
Write-Message "Executing unit tests" | ||
Get-DotNetProjectDirectory -RootPath $PSScriptRoot\test | Where-Object { $_ -inotlike "*Test.Scenario.InternalsVisible" } | Invoke-Test | ||
|
||
# Finished | ||
Write-Message "Build finished" | ||
Pop-Location |
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,61 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RuleSet Name="Autofac Analyzer Rules" Description="Analyzer rules for Autofac assemblies." ToolsVersion="14.0"> | ||
<!-- https://github.com/dotnet/roslyn/blob/master/docs/compilers/Rule%20Set%20Format.md --> | ||
<IncludeAll Action="Warning" /> | ||
<Rules AnalyzerId="Microsoft.Usage" RuleNamespace="Microsoft.Usage"> | ||
<!-- Implement standard exception constructors - not all of the exception constructors (e.g., parameterless) are desired in our system. --> | ||
<Rule Id="CA1032" Action="None" /> | ||
<!-- Change names to avoid reserved word overlaps (e.g., Delegate, GetType, etc.) - too many of these in the public API, we'd break if we fixed it. --> | ||
<Rule Id="CA1716" Action="None" /> | ||
<!-- Implement serialization constructors - false positive when building .NET Core --> | ||
<Rule Id="CA2229" Action="None" /> | ||
<!-- Mark ISerializable types with SerializableAttribute - false positive when building .NET Core --> | ||
<Rule Id="CA2237" Action="None" /> | ||
</Rules> | ||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers"> | ||
<!-- Prefix local calls with this --> | ||
<Rule Id="SA1101" Action="None" /> | ||
<!-- Use built-in type alias --> | ||
<Rule Id="SA1121" Action="None" /> | ||
<!-- Use String.Empty instead of "" --> | ||
<Rule Id="SA1122" Action="None" /> | ||
<!-- Using statements must be inside a namespace --> | ||
<Rule Id="SA1200" Action="None" /> | ||
<!-- Enforce order of class members by member type --> | ||
<Rule Id="SA1201" Action="None" /> | ||
<!-- Enforce order of class members by member visibility --> | ||
<Rule Id="SA1202" Action="None" /> | ||
<!-- Enforce order of constantand static members --> | ||
<Rule Id="SA1203" Action="None" /> | ||
<!-- Enforce order of static vs. non-static members --> | ||
<Rule Id="SA1204" Action="None" /> | ||
<!-- Enforce order of readonly vs. non-readonly members --> | ||
<Rule Id="SA1214" Action="None" /> | ||
<!-- Fields can't start with underscore --> | ||
<Rule Id="SA1309" Action="None" /> | ||
<!-- Suppressions must have a justification --> | ||
<Rule Id="SA1404" Action="None" /> | ||
<!-- Use trailing comma in initializers - lots of false positives for enums in StyleCop 1.1.0-beta004 --> | ||
<Rule Id="SA1413" Action="None" /> | ||
<!-- No single-line statements involving braces --> | ||
<Rule Id="SA1501" Action="None" /> | ||
<!-- Braces must not be omitted --> | ||
<Rule Id="SA1503" Action="None" /> | ||
<!-- Element must be documented --> | ||
<Rule Id="SA1600" Action="None" /> | ||
<!-- Parameter documentation mus be in the right order --> | ||
<Rule Id="SA1612" Action="None" /> | ||
<!-- Return value must be documented --> | ||
<Rule Id="SA1615" Action="None" /> | ||
<!-- Generic type parameters must be documented --> | ||
<Rule Id="SA1618" Action="None" /> | ||
<!-- Don't copy/paste documentation --> | ||
<Rule Id="SA1625" Action="None" /> | ||
<!-- Exception documentation must not be empty --> | ||
<Rule Id="SA1627" Action="None" /> | ||
<!-- File must have header --> | ||
<Rule Id="SA1633" Action="None" /> | ||
<!-- Enable XML documentation output--> | ||
<Rule Id="SA1652" Action="None" /> | ||
</Rules> | ||
</RuleSet> |
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,15 @@ | ||
@{ | ||
RootModule = '.\Autofac.Build.psm1' | ||
ModuleVersion = '0.2.0' | ||
GUID = '55d3f738-f48f-4497-9b2c-ecd90ec1f978' | ||
Author = 'Autofac Contributors' | ||
CompanyName = 'Autofac' | ||
Description = 'Build support for Autofac projects.' | ||
FunctionsToExport = '*' | ||
CmdletsToExport = '*' | ||
VariablesToExport = '*' | ||
AliasesToExport = '*' | ||
ModuleList = @() | ||
FileList = @() | ||
PrivateData = '' | ||
} |
Oops, something went wrong.