Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
convert to .net core
Browse files Browse the repository at this point in the history
  • Loading branch information
pwelter34 committed Jul 16, 2016
1 parent aa84bbd commit f156fe5
Show file tree
Hide file tree
Showing 120 changed files with 101,329 additions and 1,137 deletions.
62 changes: 62 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +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
94 changes: 74 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Visual Studo 2015 cache/options directory
# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
Expand All @@ -37,6 +39,10 @@ TestResult.xml
[Rr]eleasePS/
dlldata.c

# DNX
project.lock.json
artifacts/

*_i.c
*_p.c
*_i.h
Expand Down Expand Up @@ -69,6 +75,7 @@ _Chutzpah*
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
Expand All @@ -77,6 +84,7 @@ ipch/
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/
Expand All @@ -89,7 +97,7 @@ _ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
Expand All @@ -99,9 +107,9 @@ _TeamCity*
*.dotCover

# NCrunch
*.ncrunch*
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
Expand Down Expand Up @@ -129,41 +137,61 @@ publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# NuGet Packages Directory
packages/
## TODO: If the tool you use requires repositories.config uncomment the next line
#!packages/repositories.config

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
!packages/build/

# Windows Azure Build Output
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignoreable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Microsoft Azure ApplicationInsights config file
ApplicationInsights.config

# Windows Store app package directory
AppPackages/
BundleArtifacts/

# Others
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/
bower_components/
orleans.codegen.cs

# 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 ;-)
# 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
Expand All @@ -181,6 +209,32 @@ UpgradeLog*.htm
# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe

# FAKE - F# Make
.fake/

# Custom
/Build
/Tools
Expand Down
18 changes: 13 additions & 5 deletions Source/DataGenerator.sln → DataGenerator.sln
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24627.0
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataGenerator", "DataGenerator\DataGenerator.csproj", "{54A7A50D-FE62-45BF-B978-B26A59CB37FA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataGenerator.Tests", "DataGenerator.Tests\DataGenerator.Tests.csproj", "{7525ABFC-D6E5-48E4-9F60-571D54B94141}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{AAFC7935-A4D6-40F0-9340-CBB915D10517}"
ProjectSection(SolutionItems) = preProject
..\README.md = ..\README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{4F3A8D7B-CBC3-489C-B933-38611275185C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{2749AAED-3010-468E-88B7-B86438F20BD8}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "DataGenerator", "src\DataGenerator\DataGenerator.xproj", "{54A7A50D-FE62-45BF-B978-B26A59CB37FA}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "DataGenerator.Tests", "test\DataGenerator.Tests\DataGenerator.Tests.xproj", "{7525ABFC-D6E5-48E4-9F60-571D54B94141}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -30,4 +34,8 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{54A7A50D-FE62-45BF-B978-B26A59CB37FA} = {4F3A8D7B-CBC3-489C-B933-38611275185C}
{7525ABFC-D6E5-48E4-9F60-571D54B94141} = {2749AAED-3010-468E-88B7-B86438F20BD8}
EndGlobalSection
EndGlobal
56 changes: 22 additions & 34 deletions Master.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<PropertyGroup>
<BuildFolder>$(MSBuildProjectDirectory)\Build</BuildFolder>
<ToolFolder>$(MSBuildProjectDirectory)\Tools</ToolFolder>
<SourceFolder>$(MSBuildProjectDirectory)\Source</SourceFolder>
<SourceFolder>$(MSBuildProjectDirectory)\src</SourceFolder>
<TestFolder>$(MSBuildProjectDirectory)\test</TestFolder>

<MSBuildCommunityTasksPath>$(ToolFolder)\MSBuildTasks\tools</MSBuildCommunityTasksPath>
<XUnitTasksPath>$(ToolFolder)\xunit.runner.console\tools</XUnitTasksPath>
</PropertyGroup>

<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>
Expand All @@ -24,7 +24,7 @@
<Minor Condition=" '$(Minor)' == '' ">0</Minor>
<Revision Condition=" '$(Revision)' == '' ">0</Revision>

<AssemblyVersion>$(Major).0.0.0</AssemblyVersion>
<AssemblyVersion>$(Major).$(Minor).0.0</AssemblyVersion>
<AssemblyFileVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)</AssemblyFileVersion>
<AssemblyInformationalVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)</AssemblyInformationalVersion>
<PackageVersion>$(Major).$(Minor).$(Revision).$(BuildNumber)</PackageVersion>
Expand Down Expand Up @@ -55,56 +55,44 @@
AssemblyFileVersion="$(AssemblyFileVersion)"
AssemblyInformationalVersion="$(AssemblyInformationalVersion)"
AssemblyTrademark=""/>
<ItemGroup>
<VersionFiles Include="$(SourceFolder)\**\project.json"/>
</ItemGroup>

<FileUpdate Files="%(VersionFiles.Identity)"
Regex="&quot;version&quot;: &quot;$(AssemblyVersion)&quot;,"
ReplacementText="&quot;version&quot;: &quot;$(PackageVersion)&quot;," />

<FileUpdate Files="%(VersionFiles.Identity)"
Regex="&quot;DataGenerator&quot;: &quot;$(AssemblyVersion)&quot;,"
ReplacementText="&quot;FluentRest&quot;: &quot;$(PackageVersion)&quot;," />
</Target>

<Target Name="Compile" DependsOnTargets="Clean;Version">
<MSBuild Projects="$(SourceFolder)\DataGenerator.sln"
<MSBuild Projects="DataGenerator.sln"
Properties="Configuration=$(BuildConfiguration)"/>
</Target>

<Target Name="Test" DependsOnTargets="Compile">
<ItemGroup>
<TestAssemblies Include="$(SourceFolder)\**\*.Tests\bin\$(BuildConfiguration)\*.Tests.dll"/>
<TestAssemblies Include="$(TestFolder)\**\project.json"/>
</ItemGroup>

<exec Command="$(XUnitTasksPath)\xunit.console.exe &quot;%(TestAssemblies.Identity)&quot; -appveyor"/>
<exec Command="dotnet test &quot;%(TestAssemblies.Identity)&quot;"
WorkingDirectory="$(TestFolder)\%(TestAssemblies.RecursiveDir)"/>
</Target>


<Target Name="Package" DependsOnTargets="Test">
<MakeDir Directories="$(BuildFolder)" Condition="!EXISTS($(BuildFolder))" />

<ItemGroup>
<NuGetFiles Include="$(SourceFolder)\**\*.nuspec"/>
<ProjectFiles Include="$(SourceFolder)\**\project.json"/>
</ItemGroup>

<NuGetPack File="%(NuGetFiles.Identity)"
OutputDirectory="$(BuildFolder)"
Version="$(PackageVersion)"
Symbols="true" />

</Target>

<Target Name="Publish" DependsOnTargets="Package">

<!--
Requires API key to be set ...
nuget.exe setapikey <myget-key> -Source https://www.myget.org/F/loresoft/
-->

<ItemGroup>
<NuGetPackages Include="$(BuildFolder)\*.nupkg" Exclude="$(BuildFolder)\*.symbols.nupkg"/>
<NuGetSymbols Include="$(BuildFolder)\*.symbols.nupkg" />
</ItemGroup>

<!-- Push to MyGet on Build -->
<NuGetPush File="%(NuGetPackages.Identity)"
Source="https://www.myget.org/F/loresoft/" />

<!-- Push to Symbols on Build -->
<NuGetPush File="%(NuGetSymbols.Identity)"
Source="https://nuget.symbolsource.org/MyGet/loresoft" />

<exec Command="dotnet pack --output &quot;$(BuildFolder)&quot; &quot;%(ProjectFiles.Identity)&quot; "
WorkingDirectory="$(SourceFolder)\%(ProjectFiles.RecursiveDir)"/>

</Target>

<Target Name="Build" DependsOnTargets="Package">
Expand Down
Loading

0 comments on commit f156fe5

Please sign in to comment.