-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f09ae5b
commit a19c869
Showing
21 changed files
with
2,401 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
root = true | ||
|
||
[*.xaml] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = crlf | ||
trim_trailing_spaces = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
|
||
[*.cs] | ||
# Standard options | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = crlf | ||
trim_trailing_spaces = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
# Roslyn options https://github.com/dotnet/roslyn/pull/15020 | ||
csharp_space_after_cast = false | ||
csharp_space_after_colon_in_inheritance_clause = true | ||
csharp_space_after_comma = true | ||
csharp_space_after_dot = false | ||
csharp_space_after_keywords_in_control_flow_statements = true | ||
csharp_space_after_semicolon_in_for_statement = true | ||
csharp_space_around_binary_operators = before_and_after | ||
# csharp_space_around_declaration_statements = ??? | ||
csharp_space_before_colon_in_inheritance_clause = true | ||
csharp_space_before_comma = false | ||
csharp_space_before_dot = false | ||
csharp_space_before_semicolon_in_for_statement = false | ||
csharp_space_before_open_square_brackets = false | ||
csharp_space_between_empty_square_brackets = false | ||
csharp_space_between_method_declaration_name_and_open_parenthesis = false | ||
# csharp_space_between_method_declaration_parameter_list_parentheses = ??? | ||
# csharp_space_between_method_declaration_empty_parameter_list_parentheses = ??? | ||
csharp_space_between_method_call_name_and_opening_parenthesis = false | ||
csharp_space_between_method_call_parameter_list_parentheses = false | ||
csharp_space_between_method_call_empty_parameter_list_parentheses = false | ||
csharp_space_between_square_brackets = false | ||
# csharp_space_between_parentheses = ... |
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
Large diffs are not rendered by default.
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,18 @@ | ||
## General | ||
|
||
1. PM> `.paket/paket.exe restore` restore packages. | ||
2. PM> `.paket/paket.exe auto-restore on` restore packages on build. | ||
3. PM> `.paket/paket.exe update` update packages. | ||
4. PM> `.paket/paket.exe update group GROUPNAME` update packages. | ||
5. PM> `.paket/paket.exe install` install packages. | ||
6. PM> `.paket/paket.exe install -f --createnewbindingfiles` install packages and create app.configs with redirects. | ||
7. PM> `.paket/paket.exe outdated` Lists all dependencies that have newer versions available. | ||
8. PM> `.paket/paket.exe remove nuget Gu.Analyzers group Analyzers` | ||
|
||
## Create packages | ||
|
||
1. Build in release | ||
2. PM> `.paket/paket.exe pack publish symbols` // including symbols optional | ||
3. Packages are in the publish folder. | ||
|
||
Docs: https://fsprojects.github.io/Paket/getting-started.html |
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,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<PropertyGroup> | ||
<!-- Enable the restore command to run before builds --> | ||
<RestorePackages Condition=" '$(RestorePackages)' == '' ">true</RestorePackages> | ||
<PaketToolsPath>$(MSBuildThisFileDirectory)</PaketToolsPath> | ||
<PaketRootPath>$(MSBuildThisFileDirectory)..\</PaketRootPath> | ||
<PaketLockFilePath>$(PaketRootPath)paket.lock</PaketLockFilePath> | ||
<PaketRestoreCacheFile>$(PaketRootPath)paket-files\paket.restore.cached</PaketRestoreCacheFile> | ||
<MonoPath Condition="'$(MonoPath)' == '' And Exists('/Library/Frameworks/Mono.framework/Commands/mono')">/Library/Frameworks/Mono.framework/Commands/mono</MonoPath> | ||
<MonoPath Condition="'$(MonoPath)' == ''">mono</MonoPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<!-- Paket command --> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' AND Exists('$(PaketRootPath)paket.exe')">$(PaketRootPath)paket.exe</PaketExePath> | ||
<PaketExePath Condition=" '$(PaketExePath)' == '' ">$(PaketToolsPath)paket.exe</PaketExePath> | ||
<PaketCommand Condition=" '$(OS)' == 'Windows_NT'">"$(PaketExePath)"</PaketCommand> | ||
<PaketCommand Condition=" '$(OS)' != 'Windows_NT' ">$(MonoPath) --runtime=v4.0.30319 "$(PaketExePath)"</PaketCommand> | ||
</PropertyGroup> | ||
|
||
<Choose> <!-- MyProject.fsproj.paket.references has the highest precedence --> | ||
<When Condition="Exists('$(MSBuildProjectFullPath).paket.references')"> | ||
<PropertyGroup> | ||
<PaketReferences>$(MSBuildProjectFullPath).paket.references</PaketReferences> | ||
</PropertyGroup> | ||
</When> <!-- MyProject.paket.references --> | ||
<When Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references')"> | ||
<PropertyGroup> | ||
<PaketReferences>$(MSBuildProjectDirectory)\$(MSBuildProjectName).paket.references</PaketReferences> | ||
</PropertyGroup> | ||
</When> <!-- paket.references --> | ||
<When Condition="Exists('$(MSBuildProjectDirectory)\paket.references')"> | ||
<PropertyGroup> | ||
<PaketReferences>$(MSBuildProjectDirectory)\paket.references</PaketReferences> | ||
</PropertyGroup> | ||
</When> <!-- Set to empty if a reference file isn't found matching one of the 3 format options --> | ||
<Otherwise> | ||
<PropertyGroup> | ||
<PaketReferences></PaketReferences> | ||
</PropertyGroup> | ||
</Otherwise> | ||
</Choose> | ||
|
||
<PropertyGroup> | ||
<!-- Commands --> | ||
<RestoreCommand>$(PaketCommand) restore --references-file "$(PaketReferences)"</RestoreCommand> | ||
<!-- We need to ensure packages are restored prior to assembly resolve --> | ||
<BuildDependsOn Condition="$(RestorePackages) == 'true'">RestorePackages; $(BuildDependsOn);</BuildDependsOn> | ||
</PropertyGroup> | ||
<Target Name="RestorePackages"> | ||
<PropertyGroup> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="Exists('$(PaketRestoreCacheFile)') "> | ||
<PaketRestoreCachedHash>$([System.IO.File]::ReadAllText('$(PaketRestoreCacheFile)'))</PaketRestoreCachedHash> | ||
<PaketRestoreLockFileHash>$([System.IO.File]::ReadAllText('$(PaketLockFilePath)'))</PaketRestoreLockFileHash> | ||
<PaketRestoreRequired>true</PaketRestoreRequired> | ||
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '$(PaketRestoreCachedHash)' ">false</PaketRestoreRequired> | ||
<PaketRestoreRequired Condition=" '$(PaketRestoreLockFileHash)' == '' ">true</PaketRestoreRequired> | ||
</PropertyGroup> | ||
|
||
<Exec Command="$(RestoreCommand)" | ||
IgnoreStandardErrorWarningFormat="true" | ||
WorkingDirectory="$(PaketRootPath)" | ||
ContinueOnError="false" | ||
Condition=" '$(PaketRestoreRequired)' == 'true' AND Exists('$(PaketReferences)') AND '$(PaketReferences)' != '' " | ||
/> | ||
</Target> | ||
</Project> |
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,49 @@ | ||
param($installPath, $toolsPath, $package, $project) | ||
|
||
$analyzersPaths = Join-Path (Join-Path (Split-Path -Path $toolsPath -Parent) "analyzers" ) * -Resolve | ||
|
||
foreach($analyzersPath in $analyzersPaths) | ||
{ | ||
# Install the language agnostic analyzers. | ||
if (Test-Path $analyzersPath) | ||
{ | ||
foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) | ||
{ | ||
if($project.Object.AnalyzerReferences) | ||
{ | ||
$project.Object.AnalyzerReferences.Add($analyzerFilePath.FullName) | ||
} | ||
} | ||
} | ||
} | ||
|
||
$project.Type # gives the language name like (C# or VB.NET) | ||
$languageFolder = "" | ||
if($project.Type -eq "C#") | ||
{ | ||
$languageFolder = "cs" | ||
} | ||
if($project.Type -eq "VB.NET") | ||
{ | ||
$languageFolder = "vb" | ||
} | ||
if($languageFolder -eq "") | ||
{ | ||
return | ||
} | ||
|
||
foreach($analyzersPath in $analyzersPaths) | ||
{ | ||
# Install language specific analyzers. | ||
$languageAnalyzersPath = join-path $analyzersPath $languageFolder | ||
if (Test-Path $languageAnalyzersPath) | ||
{ | ||
foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) | ||
{ | ||
if($project.Object.AnalyzerReferences) | ||
{ | ||
$project.Object.AnalyzerReferences.Add($analyzerFilePath.FullName) | ||
} | ||
} | ||
} | ||
} |
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,56 @@ | ||
param($installPath, $toolsPath, $package, $project) | ||
|
||
$analyzersPaths = Join-Path (Join-Path (Split-Path -Path $toolsPath -Parent) "analyzers" ) * -Resolve | ||
|
||
foreach($analyzersPath in $analyzersPaths) | ||
{ | ||
# Uninstall the language agnostic analyzers. | ||
if (Test-Path $analyzersPath) | ||
{ | ||
foreach ($analyzerFilePath in Get-ChildItem $analyzersPath -Filter *.dll) | ||
{ | ||
if($project.Object.AnalyzerReferences) | ||
{ | ||
$project.Object.AnalyzerReferences.Remove($analyzerFilePath.FullName) | ||
} | ||
} | ||
} | ||
} | ||
|
||
$project.Type # gives the language name like (C# or VB.NET) | ||
$languageFolder = "" | ||
if($project.Type -eq "C#") | ||
{ | ||
$languageFolder = "cs" | ||
} | ||
if($project.Type -eq "VB.NET") | ||
{ | ||
$languageFolder = "vb" | ||
} | ||
if($languageFolder -eq "") | ||
{ | ||
return | ||
} | ||
|
||
foreach($analyzersPath in $analyzersPaths) | ||
{ | ||
# Uninstall language specific analyzers. | ||
$languageAnalyzersPath = join-path $analyzersPath $languageFolder | ||
if (Test-Path $languageAnalyzersPath) | ||
{ | ||
foreach ($analyzerFilePath in Get-ChildItem $languageAnalyzersPath -Filter *.dll) | ||
{ | ||
if($project.Object.AnalyzerReferences) | ||
{ | ||
try | ||
{ | ||
$project.Object.AnalyzerReferences.Remove($analyzerFilePath.FullName) | ||
} | ||
catch | ||
{ | ||
|
||
} | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.28010.2026 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".paket", ".paket", "{D9F2B862-8ED5-4636-8877-A3FFD8DE71B2}" | ||
ProjectSection(SolutionItems) = preProject | ||
.editorconfig = .editorconfig | ||
.gitattributes = .gitattributes | ||
.gitignore = .gitignore | ||
appveyor.yml = appveyor.yml | ||
LICENSE = LICENSE | ||
paket.dependencies = paket.dependencies | ||
paket.lock = paket.lock | ||
README.md = README.md | ||
.paket\Readme.paket.md = .paket\Readme.paket.md | ||
RELEASE_NOTES.md = RELEASE_NOTES.md | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{1575C8DB-FD83-45A0-8C19-F2FFC3D8EEFC}" | ||
ProjectSection(SolutionItems) = preProject | ||
.paket\tools\install.ps1 = .paket\tools\install.ps1 | ||
.paket\tools\uninstall.ps1 = .paket\tools\uninstall.ps1 | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ValidCode", "ValidCode\ValidCode.csproj", "{DDA5D6EE-FB0C-4443-81B2-CA8ED0C064C8}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".docs", ".docs", "{1C271AF2-C36F-4734-BBC6-89B969FEDDA2}" | ||
ProjectSection(SolutionItems) = preProject | ||
README.md = README.md | ||
RELEASE_NOTES.md = RELEASE_NOTES.md | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspNetCoreAnalyzers", "AspNetCoreAnalyzers\AspNetCoreAnalyzers.csproj", "{11B2B4B8-1346-493C-8DFF-74A2FF4BCBED}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{1575C8DB-FD83-45A0-8C19-F2FFC3D8EEFC} = {D9F2B862-8ED5-4636-8877-A3FFD8DE71B2} | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {FD0A2BC3-7755-443C-966D-3332874DF025} | ||
EndGlobalSection | ||
EndGlobal |
Oops, something went wrong.