This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove project cruft, create shared projects, unify naming
All code now lives either in PCL or Shared projects. All platform-specific projects have been placed in a Platforms solution folder, since all they do is reference PCLs and Shared projects. The platform projects must be named the same for the PCL bait&switch behavior to kick in. Simplified how shared .props y .targets are used/imported, moved .snk to a single place, improved internals visible to, etc.
- Loading branch information
Showing
91 changed files
with
526 additions
and
2,163 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,21 @@ | ||
; EditorConfig to support per-solution formatting. | ||
; Use the EditorConfig VS add-in to make this work. | ||
; http://editorconfig.org/ | ||
|
||
; This is the default for the codeline. | ||
root = true | ||
|
||
[*] | ||
end_of_line = CRLF | ||
|
||
[*.{cs,txt,md}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.{sln,proj,props,targets,xml,config,nuspec}] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.{csproj,resx}] | ||
indent_style = space | ||
indent_size = 2 |
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,25 +1,41 @@ | ||
@echo off | ||
rem Only need to run this the first time after clone. Subsequent builds can be just "msbuild". | ||
rem Alternatively, this batch file can be invoked passing msbuild parameters, like: build.cmd /v:detailed /t:Rebuild | ||
:: Optional batch file to quickly build with some defaults. | ||
:: Alternatively, this batch file can be invoked passing msbuild parameters, like: build.cmd /v:detailed /t:Rebuild | ||
|
||
cd %~dp0 | ||
@ECHO OFF | ||
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION | ||
PUSHD "%~dp0" >NUL | ||
|
||
SETLOCAL | ||
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe | ||
|
||
:: Determine if MSBuild can be located. Allows for a better error message below. | ||
where msbuild > %TEMP%\msbuild.txt | ||
set /p msb=<%TEMP%\msbuild.txt | ||
|
||
IF "%msb%"=="" ( | ||
echo Please run %~n0 from a Visual Studio Developer Command Prompt. | ||
exit /b -1 | ||
) | ||
|
||
IF EXIST %CACHED_NUGET% goto copynuget | ||
echo Downloading latest version of NuGet.exe... | ||
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet | ||
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" | ||
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/latest/nuget.exe' -OutFile '%CACHED_NUGET%'" | ||
|
||
:copynuget | ||
IF EXIST build\.nuget\nuget.exe goto restore | ||
md build\.nuget | ||
copy %CACHED_NUGET% build\.nuget\nuget.exe > nul | ||
IF EXIST .nuget\nuget.exe goto restore | ||
md .nuget | ||
copy %CACHED_NUGET% .nuget\nuget.exe > nul | ||
.nuget\nuget.exe update -self | ||
|
||
:restore | ||
:: Build script packages have no version in the path, so we install them to .nuget\packages to avoid conflicts with | ||
:: solution/project packages. | ||
IF NOT EXIST packages.config goto run | ||
build\.nuget\NuGet.exe install packages.config -OutputDirectory packages -ExcludeVersion | ||
.nuget\NuGet.exe install packages.config -OutputDirectory .nuget\packages -ExcludeVersion | ||
|
||
:run | ||
msbuild build.proj /nologo /v:minimal %1 %2 %3 %4 %5 %6 %7 %8 %9 | ||
"%msb%" build.proj /v:normal %1 %2 %3 %4 %5 %6 %7 %8 %9 | ||
|
||
POPD >NUL | ||
ENDLOCAL | ||
ECHO ON |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="GitInfo" version="1.0.33-pre" targetFramework="net45" /> | ||
<package id="GitInfo" version="1.1.12" targetFramework="net45" /> | ||
</packages> |
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,9 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
|
||
<PropertyGroup> | ||
<RestoreDir>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), NuGet.Restore.targets).TrimEnd("\").TrimEnd("/"))</RestoreDir> | ||
</PropertyGroup> | ||
|
||
<Import Project="$(RestoreDir)\NuGet.Restore.targets" /> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | ||
<Import Project="NuGet.Restore.targets" /> | ||
</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
Oops, something went wrong.