Skip to content
Permalink
Browse files

Moved code from main repository

  • Loading branch information...
objorke committed Aug 17, 2014
0 parents commit a4bca00132de454f6dee77d28d0dfcfa160bddc0
Showing with 3,940 additions and 0 deletions.
  1. +22 −0 .gitattributes
  2. +183 −0 .gitignore
  3. +6 −0 .nuget/NuGet.Config
  4. +144 −0 .nuget/NuGet.targets
  5. +124 −0 DocumentationExamples.sln
  6. +74 −0 ExampleGenerator/ExampleGenerator.csproj
  7. +34 −0 ExampleGenerator/ExampleGenerator.sln
  8. +95 −0 ExampleGenerator/Program.cs
  9. +63 −0 ExampleGenerator/Properties/AssemblyInfo.cs
  10. +272 −0 ExampleGenerator/SeriesExamples.cs
  11. +3 −0 ExampleGenerator/app.config
  12. +5 −0 ExampleGenerator/packages.config
  13. +20 −0 HelloWorld/SilverlightApplication1.sln
  14. +8 −0 HelloWorld/SilverlightApplication1/App.xaml
  15. +95 −0 HelloWorld/SilverlightApplication1/App.xaml.cs
  16. +17 −0 HelloWorld/SilverlightApplication1/MainPage.xaml
  17. +39 −0 HelloWorld/SilverlightApplication1/MainPage.xaml.cs
  18. +45 −0 HelloWorld/SilverlightApplication1/MainViewModel.cs
  19. +6 −0 HelloWorld/SilverlightApplication1/Properties/AppManifest.xml
  20. +62 −0 HelloWorld/SilverlightApplication1/Properties/AssemblyInfo.cs
  21. +120 −0 HelloWorld/SilverlightApplication1/SilverlightApplication1.csproj
  22. +7 −0 HelloWorld/SilverlightApplication1/packages.config
  23. +20 −0 HelloWorld/WindowsFormsApplication1.sln
  24. +64 −0 HelloWorld/WindowsFormsApplication1/Form1.Designer.cs
  25. +46 −0 HelloWorld/WindowsFormsApplication1/Form1.cs
  26. +120 −0 HelloWorld/WindowsFormsApplication1/Form1.resx
  27. +51 −0 HelloWorld/WindowsFormsApplication1/Program.cs
  28. +63 −0 HelloWorld/WindowsFormsApplication1/Properties/AssemblyInfo.cs
  29. +71 −0 HelloWorld/WindowsFormsApplication1/Properties/Resources.Designer.cs
  30. +117 −0 HelloWorld/WindowsFormsApplication1/Properties/Resources.resx
  31. +30 −0 HelloWorld/WindowsFormsApplication1/Properties/Settings.Designer.cs
  32. +7 −0 HelloWorld/WindowsFormsApplication1/Properties/Settings.settings
  33. +95 −0 HelloWorld/WindowsFormsApplication1/WindowsFormsApplication1.csproj
  34. +7 −0 HelloWorld/WindowsFormsApplication1/packages.config
  35. +48 −0 HelloWorld/WindowsStoreApp1.sln
  36. +7 −0 HelloWorld/WindowsStoreApp1/App.xaml
  37. +139 −0 HelloWorld/WindowsStoreApp1/App.xaml.cs
  38. BIN HelloWorld/WindowsStoreApp1/Assets/Logo.scale-100.png
  39. BIN HelloWorld/WindowsStoreApp1/Assets/SmallLogo.scale-100.png
  40. BIN HelloWorld/WindowsStoreApp1/Assets/SplashScreen.scale-100.png
  41. BIN HelloWorld/WindowsStoreApp1/Assets/StoreLogo.scale-100.png
  42. +17 −0 HelloWorld/WindowsStoreApp1/MainPage.xaml
  43. +60 −0 HelloWorld/WindowsStoreApp1/MainPage.xaml.cs
  44. +45 −0 HelloWorld/WindowsStoreApp1/MainViewModel.cs
  45. +41 −0 HelloWorld/WindowsStoreApp1/Package.appxmanifest
  46. +56 −0 HelloWorld/WindowsStoreApp1/Properties/AssemblyInfo.cs
  47. +159 −0 HelloWorld/WindowsStoreApp1/WindowsStoreApp1.csproj
  48. +7 −0 HelloWorld/WindowsStoreApp1/packages.config
  49. +20 −0 HelloWorld/WpfApplication1.sln
  50. +8 −0 HelloWorld/WpfApplication1/App.xaml
  51. +46 −0 HelloWorld/WpfApplication1/App.xaml.cs
  52. +45 −0 HelloWorld/WpfApplication1/MainViewModel.cs
  53. +12 −0 HelloWorld/WpfApplication1/MainWindow.xaml
  54. +39 −0 HelloWorld/WpfApplication1/MainWindow.xaml.cs
  55. +82 −0 HelloWorld/WpfApplication1/Properties/AssemblyInfo.cs
  56. +71 −0 HelloWorld/WpfApplication1/Properties/Resources.Designer.cs
  57. +117 −0 HelloWorld/WpfApplication1/Properties/Resources.resx
  58. +30 −0 HelloWorld/WpfApplication1/Properties/Settings.Designer.cs
  59. +7 −0 HelloWorld/WpfApplication1/Properties/Settings.settings
  60. +115 −0 HelloWorld/WpfApplication1/WpfApplication1.csproj
  61. +7 −0 HelloWorld/WpfApplication1/packages.config
  62. +20 −0 HelloWorld/WpfApplication2.sln
  63. +8 −0 HelloWorld/WpfApplication2/App.xaml
  64. +44 −0 HelloWorld/WpfApplication2/App.xaml.cs
  65. +54 −0 HelloWorld/WpfApplication2/MainViewModel.cs
  66. +16 −0 HelloWorld/WpfApplication2/MainWindow.xaml
  67. +39 −0 HelloWorld/WpfApplication2/MainWindow.xaml.cs
  68. +80 −0 HelloWorld/WpfApplication2/Properties/AssemblyInfo.cs
  69. +71 −0 HelloWorld/WpfApplication2/Properties/Resources.Designer.cs
  70. +117 −0 HelloWorld/WpfApplication2/Properties/Resources.resx
  71. +30 −0 HelloWorld/WpfApplication2/Properties/Settings.Designer.cs
  72. +7 −0 HelloWorld/WpfApplication2/Properties/Settings.settings
  73. +111 −0 HelloWorld/WpfApplication2/WpfApplication2.csproj
  74. +7 −0 HelloWorld/WpfApplication2/packages.config
  75. +22 −0 LICENSE
  76. +1 −0 README.md
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.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
@@ -0,0 +1,183 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Roslyn cache directories
*.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
# 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/
# If using the old MSBuild-Integrated Package Restore, uncomment this:
#!**/packages/repositories.config

# 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/

# 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/
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>

<!-- Enable the restore command to run before builds -->
<RestorePackages Condition=" '$(RestorePackages)' == '' ">false</RestorePackages>

<!-- Property that enables building a package from a project -->
<BuildPackage Condition=" '$(BuildPackage)' == '' ">false</BuildPackage>

<!-- Determines if package restore consent is required to restore packages -->
<RequireRestoreConsent Condition=" '$(RequireRestoreConsent)' != 'false' ">true</RequireRestoreConsent>

<!-- Download NuGet.exe if it does not already exist -->
<DownloadNuGetExe Condition=" '$(DownloadNuGetExe)' == '' ">true</DownloadNuGetExe>
</PropertyGroup>

<ItemGroup Condition=" '$(PackageSources)' == '' ">
<!-- Package sources used to restore packages. By default, registered sources under %APPDATA%\NuGet\NuGet.Config will be used -->
<!-- The official NuGet package source (https://www.nuget.org/api/v2/) will be excluded if package sources are specified and it does not appear in the list -->
<!--
<PackageSource Include="https://www.nuget.org/api/v2/" />
<PackageSource Include="https://my-nuget-source/nuget/" />
-->
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT'">
<!-- Windows specific commands -->
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
</PropertyGroup>

<PropertyGroup Condition=" '$(OS)' != 'Windows_NT'">
<!-- We need to launch nuget.exe with the mono command if we're not on windows -->
<NuGetToolsPath>$(SolutionDir).nuget</NuGetToolsPath>
</PropertyGroup>

<PropertyGroup>
<PackagesProjectConfig Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config</PackagesProjectConfig>
<PackagesProjectConfig Condition=" '$(OS)' != 'Windows_NT'">$(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config</PackagesProjectConfig>
</PropertyGroup>

<PropertyGroup>
<PackagesConfig Condition="Exists('$(MSBuildProjectDirectory)\packages.config')">$(MSBuildProjectDirectory)\packages.config</PackagesConfig>
<PackagesConfig Condition="Exists('$(PackagesProjectConfig)')">$(PackagesProjectConfig)</PackagesConfig>
</PropertyGroup>

<PropertyGroup>
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>

<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>

<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>

<RequireConsentSwitch Condition=" $(RequireRestoreConsent) == 'true' ">-RequireConsent</RequireConsentSwitch>
<NonInteractiveSwitch Condition=" '$(VisualStudioVersion)' != '' AND '$(OS)' == 'Windows_NT' ">-NonInteractive</NonInteractiveSwitch>

<PaddedSolutionDir Condition=" '$(OS)' == 'Windows_NT'">"$(SolutionDir) "</PaddedSolutionDir>
<PaddedSolutionDir Condition=" '$(OS)' != 'Windows_NT' ">"$(SolutionDir)"</PaddedSolutionDir>

<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)</RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>

<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
RestorePackages;
$(BuildDependsOn);
</BuildDependsOn>

<!-- Make the build depend on restore packages -->
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
$(BuildDependsOn);
BuildPackage;
</BuildDependsOn>
</PropertyGroup>

<Target Name="CheckPrerequisites">
<!-- Raise an error if we're unable to locate nuget.exe -->
<Error Condition="'$(DownloadNuGetExe)' != 'true' AND !Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
<!--
Take advantage of MsBuild's build dependency tracking to make sure that we only ever download nuget.exe once.
This effectively acts as a lock that makes sure that the download operation will only happen once and all
parallel builds will have to wait for it to complete.
-->
<MsBuild Targets="_DownloadNuGet" Projects="$(MSBuildThisFileFullPath)" Properties="Configuration=NOT_IMPORTANT;DownloadNuGetExe=$(DownloadNuGetExe)" />
</Target>

<Target Name="_DownloadNuGet">
<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />
</Target>

<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(RestoreCommand)"
Condition="'$(OS)' != 'Windows_NT' And Exists('$(PackagesConfig)')" />

<Exec Command="$(RestoreCommand)"
LogStandardErrorAsError="true"
Condition="'$(OS)' == 'Windows_NT' And Exists('$(PackagesConfig)')" />
</Target>

<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
<Exec Command="$(BuildCommand)"
Condition=" '$(OS)' != 'Windows_NT' " />

<Exec Command="$(BuildCommand)"
LogStandardErrorAsError="true"
Condition=" '$(OS)' == 'Windows_NT' " />
</Target>

<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
<ParameterGroup>
<OutputFilename ParameterType="System.String" Required="true" />
</ParameterGroup>
<Task>
<Reference Include="System.Core" />
<Using Namespace="System" />
<Using Namespace="System.IO" />
<Using Namespace="System.Net" />
<Using Namespace="Microsoft.Build.Framework" />
<Using Namespace="Microsoft.Build.Utilities" />
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
return true;
}
catch (Exception ex) {
Log.LogErrorFromException(ex);
return false;
}
]]>
</Code>
</Task>
</UsingTask>
</Project>

0 comments on commit a4bca00

Please sign in to comment.
You can’t perform that action at this time.