commit 2ba78413c73f2767cd77c853d5a5bdbd71d2d2a0 Author: Wes Haggard Date: Mon Sep 28 10:04:13 2015 -0700 Initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1ff0c42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,63 @@ +############################################################################### +# Set default behavior to automatically normalize line endings. +############################################################################### +* text=auto + +############################################################################### +# Set default behavior for command prompt diff. +# +# This is need for earlier builds of msysgit that does not have it on by +# default for csharp files. +# Note: This is only used by command line +############################################################################### +#*.cs diff=csharp + +############################################################################### +# Set the merge driver for project and solution files +# +# Merging from the command prompt will add diff markers to the files if there +# are conflicts (Merging from VS is not affected by the settings below, in VS +# the diff markers are never inserted). Diff markers may cause the following +# file extensions to fail to load in VS. An alternative would be to treat +# these files as binary and thus will always conflict and require user +# intervention with every merge. To do so, just uncomment the entries below +############################################################################### +#*.sln merge=binary +#*.csproj merge=binary +#*.vbproj merge=binary +#*.vcxproj merge=binary +#*.vcproj merge=binary +#*.dbproj merge=binary +#*.fsproj merge=binary +#*.lsproj merge=binary +#*.wixproj merge=binary +#*.modelproj merge=binary +#*.sqlproj merge=binary +#*.wwaproj merge=binary + +############################################################################### +# behavior for image files +# +# image files are treated as binary by default. +############################################################################### +#*.jpg binary +#*.png binary +#*.gif binary + +############################################################################### +# diff behavior for common document formats +# +# Convert binary document formats to text before diffing them. This feature +# is only available from the command line. Turn it on by uncommenting the +# entries below. +############################################################################### +#*.doc diff=astextplain +#*.DOC diff=astextplain +#*.docx diff=astextplain +#*.DOCX diff=astextplain +#*.dot diff=astextplain +#*.DOT diff=astextplain +#*.pdf diff=astextplain +#*.PDF diff=astextplain +#*.rtf diff=astextplain +#*.RTF diff=astextplain diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d7423a --- /dev/null +++ b/.gitignore @@ -0,0 +1,246 @@ +syntax: glob + +### VisualStudio ### + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates +.vs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +build/ +bld/ +[Bb]in/ +[Oo]bj/ +msbuild.log + +# Roslyn stuff +*.sln.ide +*.ide/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +#NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding addin-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +*.pubxml +*.publishproj + +# NuGet Packages +*.nupkg +**/packages/* + +# Windows Azure Build Output +csx/ +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +node_modules/ +*.metaproj +*.metaproj.tmp + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +### MonoDevelop ### + +*.pidb +*.userprefs + +### Windows ### + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### Linux ### + +*~ + +# KDE directory preferences +.directory + +### OSX ### + +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# vim temporary files +[._]*.s[a-w][a-z] +[._]s[a-w][a-z] +*.un~ +Session.vim +.netrwhist +*~ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..1b7615e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,3 @@ +# Contributing + +Information on contributing is in the [Contributing Guide](https://github.com/dotnet/corefx/wiki/Contributing). diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5ae193c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Microsoft Corporation + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f0e0c9 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# corefx-tools +Place to include various misc tools for .NET and .NET Core. diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..725fa3b --- /dev/null +++ b/build.cmd @@ -0,0 +1,53 @@ +@echo off +setlocal + +:: Note: We've disabled node reuse because it causes file locking issues. +:: The issue is that we extend the build with our own targets which +:: means that that rebuilding cannot successfully delete the task +:: assembly. + +if not defined VisualStudioVersion ( + if defined VS140COMNTOOLS ( + call "%VS140COMNTOOLS%\VsDevCmd.bat" + goto :EnvSet + ) + + if defined VS120COMNTOOLS ( + call "%VS120COMNTOOLS%\VsDevCmd.bat" + goto :EnvSet + ) + + echo Error: build.cmd requires Visual Studio 2013 or 2015. + echo Please see https://github.com/dotnet/corefx/blob/master/Documentation/developer-guide.md for build instructions. + exit /b 1 +) + +:EnvSet + +:: Log build command line +set _buildproj=%~dp0build.proj +set _buildlog=%~dp0msbuild.log +set _buildprefix=echo +set _buildpostfix=^> "%_buildlog%" +call :build %* + +:: Build +set _buildprefix= +set _buildpostfix= +call :build %* + +goto :AfterBuild + +:build +%_buildprefix% msbuild "%_buildproj%" /nologo /maxcpucount /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=normal;LogFile="%_buildlog%";Append %* %_buildpostfix% +set BUILDERRORLEVEL=%ERRORLEVEL% +goto :eof + +:AfterBuild + +echo. +:: Pull the build summary from the log file +findstr /ir /c:".*Warning(s)" /c:".*Error(s)" /c:"Time Elapsed.*" "%_buildlog%" +echo Build Exit Code = %BUILDERRORLEVEL% + +exit /b %BUILDERRORLEVEL% \ No newline at end of file diff --git a/build.proj b/build.proj new file mode 100644 index 0000000..9a45c51 --- /dev/null +++ b/build.proj @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + BatchRestorePackages; + $(TraversalBuildDependsOn); + + + + + + + + + + + <_allPackagesConfigs Include="$(MSBuildProjectDirectory)\src\**\packages.config"/> + + + + + + + + + + + + + \ No newline at end of file diff --git a/dir.props b/dir.props new file mode 100644 index 0000000..2c6e8d7 --- /dev/null +++ b/dir.props @@ -0,0 +1,246 @@ + + + + + + $(OS) + + + + + 1.0.25-prerelease-00094 + 1.0.0-beta7 + dnx-coreclr-win-x86.$(DnxVersion) + dnx-mono.$(DnxVersion) + 1.0.0-rc3-20150510-01 + Microsoft.Net.ToolsetCompilers + + + + + + + + True + + + + + + $(MSBuildThisFileDirectory) + $(ProjectDir)src/ + + + $(ProjectDir)bin/ + $(BinDir)obj/ + $(BinDir)tests/ + $(BinDir)packages/ + + + $(ProjectDir)packages/ + $(PackagesDir)Microsoft.DotNet.BuildTools.$(BuildToolsVersion)/lib/ + + + + + + + + + + + $(PackagesDir)NuGet.exe + @(NuGetSourceList -> '-source %(Identity)', ' ') + $(NuGetPackageSource) + + "$(NuGetToolPath)" + $(NugetRestoreCommand) install + + $(NugetRestoreCommand) -OutputDirectory "$(PackagesDir.TrimEnd('/\'.ToCharArray()))" + $(NugetRestoreCommand) $(NuGetConfigCommandLine) + $(NugetRestoreCommand) -Verbosity detailed + mono $(NuGetRestoreCommand) + + + + + + + + + + + + + + + + + + + + + $(PackagesDir)/$(DnxPackageName)/ + $(DnxPackageDir)\bin\dnu.cmd + $(DnxPackageDir)/bin/dnu + + @(DnuSourceList -> '--source %(Identity)', ' ') + @(DnuRestoreDir -> '%(Identity)', ' ') + + "$(DnuToolPath)" + $(DnuRestoreCommand) restore + $(DnuRestoreCommand) --parallel + $(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('/\'.ToCharArray()))" $(DnuRestoreSource) + $(DnuRestoreCommand) --lock + + + + + false + + + + + $(PackagesDir)/$(RoslynPackageName).$(RoslynVersion)/ + $(RoslynPackageDir)build/Microsoft.Net.ToolsetCompilers.props + + + + false + none + + false + + + + + false + + true + + + + + + + AnyCPU + + Debug + Debug + Release + $(Configuration) + + Windows_NT + Linux + OSX + FreeBSD + Windows_NT + + + + + true + false + full + $(DefineConstants),DEBUG,TRACE + + + true + true + pdbonly + $(DefineConstants),TRACE + + + + + true + true + false + false + + + + + 4 + true + + + + + $(SourceDir)Common + + + + + $(OSGroup).$(Platform).$(ConfigurationGroup) + + $(BinDir) + $(BaseOutputPath)$(OSPlatformConfig)\$(MSBuildProjectName)\ + + $(ObjDir) + $(BaseIntermediateOutputPath)$(OSPlatformConfig)\ + $(IntermediateOutputRootPath)$(MSBuildProjectName)\ + + $(TestWorkingDir)$(OSPlatformConfig)\$(MSBuildProjectName)\ + + $(BinDir)$(OSPlatformConfig) + + + + + true + true + true + true + + true + + + + + <_WindowsKitBinPath>$(MSBuildProgramFiles32)\Windows Kits\8.1\bin\x86 + <_WindowsPhoneKitBinPath>$(MSBuildProgramFiles32)\Windows Phone Kits\8.1\bin + $(_WindowsKitBinPath)\makepri.exe + $(_WindowsKitBinPath)\makeappx.exe + $(_WindowsKitBinPath)\signtool.exe + $(_WindowsPhoneKitBinPath)\x86\MrmEnvironmentExtDl.dll + $(_WindowsPhoneKitBinPath)\x64\MrmEnvironmentExtDl.dll + + + + + + + + + diff --git a/dir.targets b/dir.targets new file mode 100644 index 0000000..b24dcdf --- /dev/null +++ b/dir.targets @@ -0,0 +1,122 @@ + + + + + + +
+ + + + + + + maxTries) + { + throw; + } + else + { + Log.LogMessage(MessageImportance.High, "Download failed, retrying: {0}", e.Message); + } + } + } + + try + { + if (!File.Exists(FileName)) + File.Move(tempFile, FileName); + } + finally + { + if (File.Exists(tempFile)) + File.Delete(tempFile); + } + ]]> + + + + + + + $(ToolsDir)BuildTools.semaphore + + + + + + + + + + + + + + + + + <_RestoreBuildToolsCommand>$(NugetRestoreCommand) "$(SourceDir).nuget/packages.$(OsEnvironment).config" + + + + + + + + + + + + + + + + + + + + + diff --git a/dir.traversal.targets b/dir.traversal.targets new file mode 100644 index 0000000..ad5a710 --- /dev/null +++ b/dir.traversal.targets @@ -0,0 +1,103 @@ + + + + + + $(MSBuildProjectDefaultTargets) + + + + + + + + + + + + + + Clean + + + + + + + + + + + + + + + + RestorePackages + + + + + + + + + + + + + + BuildAllProjects; + $(TraversalBuildDependsOn); + + + + CleanAllProjects; + $(TraversalCleanDependsOn); + + + + RestoreAllProjectPackages; + $(TraversalRestorePackagesDependsOn) + + + + + + + + + + + + \ No newline at end of file diff --git a/src/.nuget/packages.Windows_NT.config b/src/.nuget/packages.Windows_NT.config new file mode 100644 index 0000000..908cdb7 --- /dev/null +++ b/src/.nuget/packages.Windows_NT.config @@ -0,0 +1,5 @@ + + + + + diff --git a/src/BuildValues.props b/src/BuildValues.props new file mode 100644 index 0000000..2e6c2cd --- /dev/null +++ b/src/BuildValues.props @@ -0,0 +1,13 @@ + + + + + 00001 + + \ No newline at end of file diff --git a/src/NuGet.Config b/src/NuGet.Config new file mode 100644 index 0000000..ff724ee --- /dev/null +++ b/src/NuGet.Config @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/dir.props b/src/dir.props new file mode 100644 index 0000000..2e91632 --- /dev/null +++ b/src/dir.props @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/dir.targets b/src/dir.targets new file mode 100644 index 0000000..a70a3ed --- /dev/null +++ b/src/dir.targets @@ -0,0 +1,22 @@ + + + true + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/dirs.proj b/src/dirs.proj new file mode 100644 index 0000000..6dd64e7 --- /dev/null +++ b/src/dirs.proj @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + $(TraversalBuildDependsOn); + BuildPackages; + + + + + true + + + + + \ No newline at end of file