Skip to content

Commit 443391a

Browse files
committed
Merge branch 'IconPack' of https://github.com/ButchersBoy/MaterialDesignInXamlToolkit into IconPack
2 parents b9ec6f7 + a02b448 commit 443391a

10 files changed

+275
-26
lines changed

MaterialDesignThemes.Wpf/Icon.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Windows;
2+
using System.Windows.Controls;
3+
4+
namespace MaterialDesignThemes.Wpf
5+
{
6+
/// <summary>
7+
/// Displays an icon image/path, according to the specified <see cref="Type"/> name.
8+
/// </summary>
9+
/// <remarks>
10+
/// All icons sourced from Material Design Icons Font - <see cref="https://materialdesignicons.com/"/> - in accordance of
11+
/// <see cref="https://github.com/Templarian/MaterialDesign/blob/master/license.txt"/>.
12+
/// </remarks>
13+
public class Icon : Control
14+
{
15+
public static readonly DependencyProperty TypeProperty = DependencyProperty.Register(
16+
"Type", typeof (IconType), typeof (Icon), new PropertyMetadata(default(IconType)));
17+
18+
/// <summary>
19+
/// Gets or sets the name of icon being displayed.
20+
/// </summary>
21+
public IconType Type
22+
{
23+
get { return (IconType) GetValue(TypeProperty); }
24+
set { SetValue(TypeProperty, value); }
25+
}
26+
}
27+
}

MaterialDesignThemes.Wpf/IconType.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace MaterialDesignThemes.Wpf
2+
{
3+
/// <summary>
4+
/// List of available icons for use with <see cref="Icon"/>.
5+
/// </summary>
6+
/// <remarks>
7+
/// All icons sourced from Material Design Icons Font - <see cref="https://materialdesignicons.com/"/> - in accordance of
8+
/// <see cref="https://github.com/Templarian/MaterialDesign/blob/master/license.txt"/>.
9+
/// </remarks>
10+
public enum IconType
11+
{
12+
AutoGeneratedDoNotAmend
13+
}
14+
}

MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@
250250
<Compile Include="DpiHelper.cs" />
251251
<Compile Include="DrawerHost.cs" />
252252
<Compile Include="Extensions.cs" />
253+
<Compile Include="Icon.cs" />
254+
<Compile Include="IconType.cs" />
253255
<Compile Include="ListSortDirectionIndicator.cs" />
254256
<Compile Include="MaterialDataGridComboBoxColumn.cs" />
255257
<Compile Include="MaterialDataGridTextColumn.cs" />
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdresgen", "mdresgen\mdresgen.csproj", "{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
AppVeyor|Any CPU = AppVeyor|Any CPU
11+
Debug|Any CPU = Debug|Any CPU
12+
Release|Any CPU = Release|Any CPU
13+
EndGlobalSection
14+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|Any CPU.ActiveCfg = AppVeyor|Any CPU
16+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|Any CPU.Build.0 = AppVeyor|Any CPU
17+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
18+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|Any CPU.Build.0 = Debug|Any CPU
19+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|Any CPU.ActiveCfg = Release|Any CPU
20+
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|Any CPU.Build.0 = Release|Any CPU
21+
EndGlobalSection
22+
GlobalSection(SolutionProperties) = preSolution
23+
HideSolutionNode = FALSE
24+
EndGlobalSection
25+
EndGlobal

MaterialDesignToolkit.Wpf.sln

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 14
44
VisualStudioVersion = 14.0.23107.0
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mdresgen", "mdresgen\mdresgen.csproj", "{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}"
7-
EndProject
86
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaterialDesignThemes.Wpf", "MaterialDesignThemes.Wpf\MaterialDesignThemes.Wpf.csproj", "{F079FB0A-A8ED-4216-B6A5-345756751A04}"
97
EndProject
108
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MaterialDesignDemo", "MainDemo.Wpf\MaterialDesignDemo.csproj", "{CF0A27A8-EF82-44E5-B673-ECCC150C48ED}"
@@ -44,30 +42,6 @@ Global
4442
Release|x86 = Release|x86
4543
EndGlobalSection
4644
GlobalSection(ProjectConfigurationPlatforms) = postSolution
47-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|Any CPU.ActiveCfg = AppVeyor|Any CPU
48-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|Any CPU.Build.0 = AppVeyor|Any CPU
49-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|ARM.ActiveCfg = AppVeyor|Any CPU
50-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|ARM.Build.0 = AppVeyor|Any CPU
51-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|x64.ActiveCfg = AppVeyor|Any CPU
52-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|x64.Build.0 = AppVeyor|Any CPU
53-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|x86.ActiveCfg = AppVeyor|Any CPU
54-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.AppVeyor|x86.Build.0 = AppVeyor|Any CPU
55-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|ARM.ActiveCfg = Debug|Any CPU
58-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|ARM.Build.0 = Debug|Any CPU
59-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|x64.ActiveCfg = Debug|Any CPU
60-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|x64.Build.0 = Debug|Any CPU
61-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|x86.ActiveCfg = Debug|Any CPU
62-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Debug|x86.Build.0 = Debug|Any CPU
63-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|Any CPU.ActiveCfg = Release|Any CPU
64-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|Any CPU.Build.0 = Release|Any CPU
65-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|ARM.ActiveCfg = Release|Any CPU
66-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|ARM.Build.0 = Release|Any CPU
67-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|x64.ActiveCfg = Release|Any CPU
68-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|x64.Build.0 = Release|Any CPU
69-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|x86.ActiveCfg = Release|Any CPU
70-
{8E2BD5CB-1C31-4226-8A0C-7D5BD015EF43}.Release|x86.Build.0 = Release|Any CPU
7145
{F079FB0A-A8ED-4216-B6A5-345756751A04}.AppVeyor|Any CPU.ActiveCfg = AppVeyor|Any CPU
7246
{F079FB0A-A8ED-4216-B6A5-345756751A04}.AppVeyor|Any CPU.Build.0 = AppVeyor|Any CPU
7347
{F079FB0A-A8ED-4216-B6A5-345756751A04}.AppVeyor|ARM.ActiveCfg = AppVeyor|Any CPU

mdresgen/IconThing.cs

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using System.Net;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
using Humanizer;
9+
using Microsoft.CodeAnalysis;
10+
using Microsoft.CodeAnalysis.CSharp;
11+
using Microsoft.CodeAnalysis.CSharp.Syntax;
12+
using Microsoft.CodeAnalysis.Text;
13+
using Newtonsoft.Json.Linq;
14+
15+
namespace mdresgen
16+
{
17+
class IconThing
18+
{
19+
public void Run()
20+
{
21+
Console.WriteLine("Downloading icon data...");
22+
23+
//var nameDataPairs = GetNameDataPairs(GetSourceData()).ToList();
24+
25+
// Console.WriteLine(nameDataPairs.Count);
26+
27+
UpdateEnum("IconType.template.cs");
28+
}
29+
30+
private static string GetSourceData()
31+
{
32+
var webRequest = WebRequest.CreateDefault(
33+
new Uri("https://materialdesignicons.com/api/package/38EF63D0-4744-11E4-B3CF-842B2B6CFE1B"));
34+
webRequest.UseDefaultCredentials = true;
35+
using (var sr = new StreamReader(webRequest.GetResponse().GetResponseStream()))
36+
{
37+
var iconData = sr.ReadToEnd();
38+
39+
Console.WriteLine("Got.");
40+
41+
return iconData;
42+
}
43+
}
44+
45+
private static IEnumerable<Tuple<string, string>> GetNameDataPairs(string sourceData)
46+
{
47+
var jObject = JObject.Parse(sourceData);
48+
return jObject["icons"].Select(t => new Tuple<string, string>(
49+
t["name"].ToString().Underscore().Pascalize(),
50+
t["data"].ToString()));
51+
}
52+
53+
54+
private void UpdateEnum(string sourceFile)
55+
{
56+
var sourceText = SourceText.From(new FileStream(sourceFile, FileMode.Open));
57+
var syntaxTree = CSharpSyntaxTree.ParseText(sourceText);
58+
59+
var rootNode = syntaxTree.GetRoot();
60+
var namespaceDeclarationNode = rootNode.ChildNodes().Single();
61+
var enumDeclarationSyntaxNode = namespaceDeclarationNode.ChildNodes().OfType<EnumDeclarationSyntax>().Single();
62+
63+
var emptyEnumDeclarationSyntaxNode = enumDeclarationSyntaxNode.RemoveNodes(enumDeclarationSyntaxNode.ChildNodes().OfType<EnumMemberDeclarationSyntax>(), SyntaxRemoveOptions.KeepDirectives);
64+
65+
var leadingTriviaList = SyntaxTriviaList.Create(SyntaxFactory.Whitespace(" "));
66+
var generatedEnumDeclarationSyntax = emptyEnumDeclarationSyntaxNode.AddMembers(
67+
SyntaxFactory.EnumMemberDeclaration(SyntaxFactory.Identifier(leadingTriviaList, "Aston", SyntaxTriviaList.Empty)),
68+
SyntaxFactory.EnumMemberDeclaration(SyntaxFactory.Identifier(leadingTriviaList, "Villa", SyntaxTriviaList.Empty)));
69+
70+
generatedEnumDeclarationSyntax = AddLineFeedsToCommas(generatedEnumDeclarationSyntax);
71+
72+
var generatedNamespaceDeclarationSyntaxNode = namespaceDeclarationNode.ReplaceNode(enumDeclarationSyntaxNode, generatedEnumDeclarationSyntax);
73+
var generatedRootNode = rootNode.ReplaceNode(namespaceDeclarationNode, generatedNamespaceDeclarationSyntaxNode);
74+
75+
Console.WriteLine(generatedRootNode.ToFullString());
76+
}
77+
78+
private static EnumDeclarationSyntax AddLineFeedsToCommas(EnumDeclarationSyntax enumDeclarationSyntax)
79+
{
80+
var none = new SyntaxToken();
81+
var trailingTriviaList = SyntaxTriviaList.Create(SyntaxFactory.ElasticCarriageReturnLineFeed);
82+
83+
Func<EnumDeclarationSyntax, SyntaxToken> next = enumSyntax => enumSyntax.ChildNodesAndTokens()
84+
.Where(nodeOrToken => nodeOrToken.IsToken)
85+
.Select(nodeOrToken => nodeOrToken.AsToken())
86+
.FirstOrDefault(
87+
token =>
88+
token.Value.Equals(",") &&
89+
(!token.HasTrailingTrivia || !token.TrailingTrivia.Any(SyntaxKind.EndOfLineTrivia)));
90+
91+
SyntaxToken current;
92+
while ((current = next(enumDeclarationSyntax)) != none)
93+
{
94+
enumDeclarationSyntax = enumDeclarationSyntax.ReplaceToken(current,
95+
SyntaxFactory.Identifier(SyntaxTriviaList.Empty, ",", trailingTriviaList)
96+
);
97+
}
98+
99+
return enumDeclarationSyntax;
100+
}
101+
}
102+
}

mdresgen/IconType.template.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
namespace MaterialDesignThemes.Wpf
2+
{
3+
/// ******************************************
4+
/// This code is auto generated. Do not amend.
5+
/// ******************************************
6+
7+
/// <summary>
8+
/// List of available icons for use with <see cref="Icon"/>.
9+
/// </summary>
10+
/// <remarks>
11+
/// All icons sourced from Material Design Icons Font - <see cref="https://materialdesignicons.com/"/> - in accordance of
12+
/// <see cref="https://github.com/Templarian/MaterialDesign/blob/master/license.txt"/>.
13+
/// </remarks>
14+
public enum IconType
15+
{
16+
AutoGenerated,
17+
DoNotAmend
18+
}
19+
}

mdresgen/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ static void Main(string[] args)
5151
GenerateOldXaml(xDocument, true);
5252
else if (args.Contains("old"))
5353
GenerateOldXaml(xDocument, false);
54+
else if (args.Contains("icons"))
55+
new IconThing().Run();
5456
else
5557
GenerateXaml(xDocument, false);
5658

mdresgen/mdresgen.csproj

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,76 @@
4444
<Prefer32Bit>true</Prefer32Bit>
4545
</PropertyGroup>
4646
<ItemGroup>
47+
<Reference Include="Humanizer, Version=1.37.7.0, Culture=neutral, PublicKeyToken=979442b78dfc278e, processorArchitecture=MSIL">
48+
<HintPath>..\packages\Humanizer.1.37.7\lib\portable-win+net40+sl50+wp8+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Humanizer.dll</HintPath>
49+
<Private>True</Private>
50+
</Reference>
51+
<Reference Include="Microsoft.CodeAnalysis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
52+
<HintPath>..\packages\Microsoft.CodeAnalysis.Common.1.1.1\lib\net45\Microsoft.CodeAnalysis.dll</HintPath>
53+
<Private>True</Private>
54+
</Reference>
55+
<Reference Include="Microsoft.CodeAnalysis.CSharp, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
56+
<HintPath>..\packages\Microsoft.CodeAnalysis.CSharp.1.1.1\lib\net45\Microsoft.CodeAnalysis.CSharp.dll</HintPath>
57+
<Private>True</Private>
58+
</Reference>
59+
<Reference Include="Microsoft.CodeAnalysis.CSharp.Workspaces, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
60+
<HintPath>..\packages\Microsoft.CodeAnalysis.CSharp.Workspaces.1.1.1\lib\net45\Microsoft.CodeAnalysis.CSharp.Workspaces.dll</HintPath>
61+
<Private>True</Private>
62+
</Reference>
63+
<Reference Include="Microsoft.CodeAnalysis.Workspaces, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
64+
<HintPath>..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.1.1\lib\net45\Microsoft.CodeAnalysis.Workspaces.dll</HintPath>
65+
<Private>True</Private>
66+
</Reference>
67+
<Reference Include="Microsoft.CodeAnalysis.Workspaces.Desktop, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
68+
<HintPath>..\packages\Microsoft.CodeAnalysis.Workspaces.Common.1.1.1\lib\net45\Microsoft.CodeAnalysis.Workspaces.Desktop.dll</HintPath>
69+
<Private>True</Private>
70+
</Reference>
4771
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
4872
<SpecificVersion>False</SpecificVersion>
4973
<HintPath>..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
5074
</Reference>
5175
<Reference Include="System" />
76+
<Reference Include="System.Collections.Immutable, Version=1.1.37.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
77+
<HintPath>..\packages\System.Collections.Immutable.1.1.37\lib\dotnet\System.Collections.Immutable.dll</HintPath>
78+
<Private>True</Private>
79+
</Reference>
80+
<Reference Include="System.Composition.AttributedModel, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
81+
<HintPath>..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.AttributedModel.dll</HintPath>
82+
<Private>True</Private>
83+
</Reference>
84+
<Reference Include="System.Composition.Convention, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
85+
<HintPath>..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Convention.dll</HintPath>
86+
<Private>True</Private>
87+
</Reference>
88+
<Reference Include="System.Composition.Hosting, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
89+
<HintPath>..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Hosting.dll</HintPath>
90+
<Private>True</Private>
91+
</Reference>
92+
<Reference Include="System.Composition.Runtime, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
93+
<HintPath>..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.Runtime.dll</HintPath>
94+
<Private>True</Private>
95+
</Reference>
96+
<Reference Include="System.Composition.TypedParts, Version=1.0.27.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
97+
<HintPath>..\packages\Microsoft.Composition.1.0.27\lib\portable-net45+win8+wp8+wpa81\System.Composition.TypedParts.dll</HintPath>
98+
<Private>True</Private>
99+
</Reference>
52100
<Reference Include="System.Core" />
53101
<Reference Include="System.Drawing" />
102+
<Reference Include="System.Reflection.Metadata, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
103+
<HintPath>..\packages\System.Reflection.Metadata.1.1.0\lib\dotnet5.2\System.Reflection.Metadata.dll</HintPath>
104+
<Private>True</Private>
105+
</Reference>
54106
<Reference Include="System.Xml.Linq" />
55107
<Reference Include="System.Data.DataSetExtensions" />
56108
<Reference Include="Microsoft.CSharp" />
57109
<Reference Include="System.Data" />
58110
<Reference Include="System.Xml" />
59111
</ItemGroup>
60112
<ItemGroup>
113+
<Compile Include="IconThing.cs" />
114+
<None Include="IconType.template.cs">
115+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
116+
</None>
61117
<Compile Include="Program.cs" />
62118
<Compile Include="Properties\AssemblyInfo.cs" />
63119
</ItemGroup>
@@ -82,6 +138,10 @@
82138
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
83139
</None>
84140
</ItemGroup>
141+
<ItemGroup>
142+
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
143+
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.1.1.0\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
144+
</ItemGroup>
85145
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
86146
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
87147
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

mdresgen/packages.config

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="Humanizer" version="1.37.7" targetFramework="net45" />
4+
<package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net45" />
5+
<package id="Microsoft.CodeAnalysis.Common" version="1.1.1" targetFramework="net45" />
6+
<package id="Microsoft.CodeAnalysis.CSharp" version="1.1.1" targetFramework="net45" />
7+
<package id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="1.1.1" targetFramework="net45" />
8+
<package id="Microsoft.CodeAnalysis.Workspaces.Common" version="1.1.1" targetFramework="net45" />
9+
<package id="Microsoft.Composition" version="1.0.27" targetFramework="net45" />
310
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
11+
<package id="System.Collections" version="4.0.0" targetFramework="net45" />
12+
<package id="System.Collections.Immutable" version="1.1.37" targetFramework="net45" />
13+
<package id="System.Diagnostics.Debug" version="4.0.0" targetFramework="net45" />
14+
<package id="System.Globalization" version="4.0.0" targetFramework="net45" />
15+
<package id="System.IO" version="4.0.0" targetFramework="net45" />
16+
<package id="System.Linq" version="4.0.0" targetFramework="net45" />
17+
<package id="System.Reflection" version="4.0.0" targetFramework="net45" />
18+
<package id="System.Reflection.Extensions" version="4.0.0" targetFramework="net45" />
19+
<package id="System.Reflection.Metadata" version="1.1.0" targetFramework="net45" />
20+
<package id="System.Reflection.Primitives" version="4.0.0" targetFramework="net45" />
21+
<package id="System.Resources.ResourceManager" version="4.0.0" targetFramework="net45" />
22+
<package id="System.Runtime" version="4.0.0" targetFramework="net45" />
23+
<package id="System.Runtime.Extensions" version="4.0.0" targetFramework="net45" />
24+
<package id="System.Runtime.InteropServices" version="4.0.0" targetFramework="net45" />
25+
<package id="System.Text.Encoding" version="4.0.0" targetFramework="net45" />
26+
<package id="System.Text.Encoding.Extensions" version="4.0.0" targetFramework="net45" />
27+
<package id="System.Threading" version="4.0.0" targetFramework="net45" />
428
</packages>

0 commit comments

Comments
 (0)