Skip to content

Commit

Permalink
Cleanup the solution and projects to ensure that they load and build …
Browse files Browse the repository at this point in the history
…on VS2017
  • Loading branch information
aaubry committed Jan 24, 2018
1 parent 9978242 commit 4d6ae4d
Show file tree
Hide file tree
Showing 24 changed files with 162 additions and 509 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ README.html

samples/dotnet/project.lock.json
YamlDotNet/Properties/AssemblyInfo.Generated.cs

/.vs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.IO;
using YamlDotNet.Serialization;
using YamlDotNet.PerformanceTests.Lib;
using YamlDotNet.Serialization.NamingConventions;

namespace YamlDotNet.PerformanceTests.vlatest
{
Expand Down
1 change: 1 addition & 0 deletions YamlDotNet.Test/YamlDotNet.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<Configurations>Debug;Release-Unsigned</Configurations>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Expand Down
242 changes: 76 additions & 166 deletions YamlDotNet.sln

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion YamlDotNet/Core/AnchorNotFoundException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public AnchorNotFoundException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="AnchorNotFoundException"/> class.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/Core/ForwardAnchorNotSupportedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ForwardAnchorNotSupportedException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="AnchorNotFoundException"/> class.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/Core/MaximumRecursionLevelReachedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public MaximumRecursionLevelReachedException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="MaximumRecursionLevelReachedException"/> class.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/Core/SemanticErrorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SemanticErrorException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="SemanticErrorException"/> class.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/Core/SyntaxErrorException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SyntaxErrorException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="SyntaxErrorException"/> class.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion YamlDotNet/Core/YamlException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public YamlException(string message, Exception inner)
{
}

#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Initializes a new instance of the <see cref="YamlException"/> class.
/// </summary>
Expand Down
Binary file removed YamlDotNet/GlobalSuppressions.cs
Binary file not shown.
20 changes: 16 additions & 4 deletions YamlDotNet/Helpers/Portability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

namespace YamlDotNet
{
#if (PORTABLE || UNITY)
#if (NETSTANDARD1_3 || UNITY)
internal static class StandardRegexOptions
{
public const RegexOptions Compiled = RegexOptions.None;
Expand All @@ -40,11 +40,11 @@ internal static class StandardRegexOptions
}
#endif

#if PORTABLE
/// <summary>
#if NETSTANDARD1_3
/// <summary>
/// Mock UTF7Encoding to avoid having to add #if all over the place
/// </summary>
internal sealed class UTF7Encoding : System.Text.Encoding
internal sealed class UTF7Encoding : System.Text.Encoding
{
public override int GetByteCount(char[] chars, int index, int count)
{
Expand Down Expand Up @@ -455,3 +455,15 @@ public static object ReadValue(this PropertyInfo property, object target)
}
#endif
}

#if NETSTANDARD1_3
namespace System.Runtime.Serialization
{
public class SerializationException : Exception
{
public SerializationException(string message) : base(message)
{
}
}
}
#endif
35 changes: 2 additions & 33 deletions YamlDotNet/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,16 @@
// SOFTWARE.

#if !UNITY
using System.Reflection;
using System.Runtime.InteropServices;
using System;
using System.Runtime.CompilerServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("YamlDotNet")]
[assembly: AssemblyDescription("The YamlDotNet library.")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("YamlDotNet")]
[assembly: AssemblyCopyright("Copyright (c) Antoine Aubry and contributors 2008, 2009, 2010, 2011, 2012, 2013, 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("0.0.1")]
[assembly: AssemblyFileVersion("0.0.0")]
[assembly: AssemblyInformationalVersion("0.0.0")]

[assembly: CLSCompliant(true)]
#if !SIGNED
#if NETSTANDARD1_3 || !PORTABLE
[assembly: InternalsVisibleTo("YamlDotNet.Test")]
[assembly: InternalsVisibleTo("YamlDotNet.Test")]
#else
[assembly: InternalsVisibleTo("YamlDotNet.Test.Portable")]
#endif
#endif


#endif
4 changes: 2 additions & 2 deletions YamlDotNet/Serialization/Utilities/TypeConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace YamlDotNet.Serialization.Utilities
/// </summary>
public static class TypeConverter
{
#if !(PORTABLE || UNITY)
#if !(NETSTANDARD1_3 || UNITY)
/// <summary>
/// Registers a <see cref="System.ComponentModel.TypeConverter"/> dynamically.
/// </summary>
Expand Down Expand Up @@ -168,7 +168,7 @@ public static object ChangeType(object value, Type destinationType, CultureInfo
return true;
}

#if !PORTABLE
#if NET35
// Try with the source type's converter
var sourceConverter = TypeDescriptor.GetConverter(value);
if (sourceConverter != null && sourceConverter.CanConvertTo(destinationType))
Expand Down
11 changes: 4 additions & 7 deletions YamlDotNet/YamlDotNet.Signed.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
<tags>yaml parser development library serialization signed strongname</tags>
</metadata>
<files>
<file src="bin\Release-Signed\net35\YamlDotNet.dll" target="lib\net35" />
<file src="bin\Release-Signed\net35\YamlDotNet.xml" target="lib\net35" />
<file src="bin\Release-Signed\net45\YamlDotNet.dll" target="lib\net45" />
<file src="bin\Release-Signed\net45\YamlDotNet.xml" target="lib\net45" />

<file src="bin\Release-Portable-Signed\YamlDotNet.dll" target="lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />
<file src="bin\Release-Portable-Signed\YamlDotNet.xml" target="lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />

<file src="bin\Release-DotNetStandard-Signed\netstandard1.3\YamlDotNet.dll" target="lib\netstandard1.3" />
<file src="bin\Release-DotNetStandard-Signed\netstandard1.3\YamlDotNet.xml" target="lib\netstandard1.3" />
<file src="bin\Release-Signed\netstandard1.3\YamlDotNet.dll" target="lib\netstandard1.3" />
<file src="bin\Release-Signed\netstandard1.3\YamlDotNet.xml" target="lib\netstandard1.3" />
</files>
</package>
11 changes: 4 additions & 7 deletions YamlDotNet/YamlDotNet.Unsigned.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
<tags>yaml parser development library serialization</tags>
</metadata>
<files>
<file src="bin\Release-Unsigned\net35\YamlDotNet.dll" target="lib\net35" />
<file src="bin\Release-Unsigned\net35\YamlDotNet.xml" target="lib\net35" />
<file src="bin\Release-Unsigned\net45\YamlDotNet.dll" target="lib\net45" />
<file src="bin\Release-Unsigned\net45\YamlDotNet.xml" target="lib\net45" />

<file src="bin\Release-Portable-Unsigned\YamlDotNet.dll" target="lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />
<file src="bin\Release-Portable-Unsigned\YamlDotNet.xml" target="lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1" />

<file src="bin\Release-DotNetStandard-Unsigned\netstandard1.3\YamlDotNet.dll" target="lib\netstandard1.3" />
<file src="bin\Release-DotNetStandard-Unsigned\netstandard1.3\YamlDotNet.xml" target="lib\netstandard1.3" />
<file src="bin\Release-Unsigned\netstandard1.3\YamlDotNet.dll" target="lib\netstandard1.3" />
<file src="bin\Release-Unsigned\netstandard1.3\YamlDotNet.xml" target="lib\netstandard1.3" />
</files>
</package>
Loading

0 comments on commit 4d6ae4d

Please sign in to comment.