Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit

Permalink
fix zfc
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Dec 20, 2016
1 parent 3296b1b commit f10f102
Show file tree
Hide file tree
Showing 31 changed files with 2,532 additions and 2,335 deletions.
2 changes: 1 addition & 1 deletion nuget/ZeroFormatter.Interfaces.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>ZeroFormatter.Interfaces</id>
<version>1.5.6</version>
<version>1.5.7</version>
<title>ZeroFormatter.Interfaces</title>
<authors>neuecc</authors>
<owners>y.neuecc</owners>
Expand Down
4 changes: 2 additions & 2 deletions nuget/ZeroFormatter.Unity.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>ZeroFormatter.Unity</id>
<version>1.5.6</version>
<version>1.5.7</version>
<title>ZeroFormatter.Unity</title>
<authors>neuecc</authors>
<owners>y.neuecc</owners>
Expand All @@ -17,7 +17,7 @@
</frameworkAssemblies>
<dependencies>
<group targetFramework="Unity Full v3.5">
<dependency id="ZeroFormatter.Interfaces" version="1.5.6" />
<dependency id="ZeroFormatter.Interfaces" version="1.5.7" />
</group>
</dependencies>
</metadata>
Expand Down
6 changes: 3 additions & 3 deletions nuget/ZeroFormatter.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>ZeroFormatter</id>
<version>1.5.6</version>
<version>1.5.7</version>
<title>ZeroFormatter</title>
<authors>neuecc</authors>
<owners>y.neuecc</owners>
Expand All @@ -17,10 +17,10 @@
</frameworkAssemblies>
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="ZeroFormatter.Interfaces" version="1.5.6" />
<dependency id="ZeroFormatter.Interfaces" version="1.5.7" />
</group>
<group targetFramework=".NETStandard1.6">
<dependency id="ZeroFormatter.Interfaces" version="1.5.6" />
<dependency id="ZeroFormatter.Interfaces" version="1.5.7" />
<dependency id="System.Reflection.Emit" version="4.0.1" />
<dependency id="System.Runtime" version="4.1.0" />
<dependency id="System.Runtime.Extensions" version="4.1.0" />
Expand Down
6 changes: 3 additions & 3 deletions nuget/push.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REM nuget push ZeroFormatter.Analyzer.1.1.1.0.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.1.5.6.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.Interfaces.1.5.6.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.Unity.1.5.6.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.1.5.7.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.Interfaces.1.5.7.nupkg -Source https://www.nuget.org/api/v2/package
nuget push ZeroFormatter.Unity.1.5.7.nupkg -Source https://www.nuget.org/api/v2/package
Binary file added nuget/zfc.exe
Binary file not shown.
24 changes: 24 additions & 0 deletions nuget/zfc.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.3.0.0" newVersion="1.3.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.2.0.0" newVersion="1.2.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Threading.Tasks.Dataflow" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.6.0.0" newVersion="4.6.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
4 changes: 2 additions & 2 deletions sandbox/PerformanceComparison/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
6 changes: 3 additions & 3 deletions sandbox/Sandbox.NETCore/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.6-*",
"version": "1.5.7-*",
"buildOptions": {
"emitEntryPoint": true
},
Expand All @@ -9,8 +9,8 @@
"type": "platform",
"version": "1.0.0"
},
"ZeroFormatter.Interfaces.NETCore": "1.5.6",
"ZeroFormatter.NETCore": "1.5.6"
"ZeroFormatter.Interfaces.NETCore": "1.5.7",
"ZeroFormatter.NETCore": "1.5.7"
},

"frameworks": {
Expand Down
14 changes: 7 additions & 7 deletions sandbox/Sandbox.NETCore/project.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,7 @@
"lib/netstandard1.3/_._": {}
}
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"framework": ".NETStandard,Version=v1.1",
"dependencies": {
Expand All @@ -2006,7 +2006,7 @@
"netstandard1.1/ZeroFormatter.Interfaces.NETCore.dll": {}
}
},
"ZeroFormatter.NETCore/1.5.6": {
"ZeroFormatter.NETCore/1.5.7": {
"type": "project",
"framework": ".NETStandard,Version=v1.6",
"dependencies": {
Expand All @@ -2024,7 +2024,7 @@
"System.Text.Encoding": "4.0.11",
"System.Text.Encoding.Extensions": "4.0.11",
"System.Threading": "4.0.11",
"ZeroFormatter.Interfaces.NETCore": "1.5.6"
"ZeroFormatter.Interfaces.NETCore": "1.5.7"
},
"compile": {
"netstandard1.6/ZeroFormatter.NETCore.dll": {}
Expand Down Expand Up @@ -6627,12 +6627,12 @@
"ref/xamarinwatchos10/_._"
]
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"path": "../../src/ZeroFormatter.Interfaces.NETCore/project.json",
"msbuildProject": "../../src/ZeroFormatter.Interfaces.NETCore/ZeroFormatter.Interfaces.NETCore.xproj"
},
"ZeroFormatter.NETCore/1.5.6": {
"ZeroFormatter.NETCore/1.5.7": {
"type": "project",
"path": "../../src/ZeroFormatter.NETCore/project.json",
"msbuildProject": "../../src/ZeroFormatter.NETCore/ZeroFormatter.NETCore.xproj"
Expand All @@ -6641,8 +6641,8 @@
"projectFileDependencyGroups": {
"": [
"Microsoft.NETCore.App >= 1.0.0",
"ZeroFormatter.Interfaces.NETCore >= 1.5.6",
"ZeroFormatter.NETCore >= 1.5.6"
"ZeroFormatter.Interfaces.NETCore >= 1.5.7",
"ZeroFormatter.NETCore >= 1.5.7"
],
".NETCoreApp,Version=v1.0": []
},
Expand Down
12 changes: 12 additions & 0 deletions sandbox/Sandbox.Shared/Bar/MyClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ public class MyClass2
public virtual MogeMoge Mone { get; set; }
}

[ZeroFormattable]
public struct GetOnly
{
[Index(0)]
public int X { get; }

public GetOnly(int x)
{
this.X = x;
}
}

public enum MogeMoge
{
Apple, Orange
Expand Down
4 changes: 2 additions & 2 deletions sandbox/Sandbox.Shared/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
4 changes: 2 additions & 2 deletions sandbox/Sandbox/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="ZeroFormatterAnalyzer.343bae8e-c880-437c-9e30-748b9e0f9b6e" Version="1.5.6" Language="en-US" Publisher="neuecc"/>
<Identity Id="ZeroFormatterAnalyzer.343bae8e-c880-437c-9e30-748b9e0f9b6e" Version="1.5.7" Language="en-US" Publisher="neuecc"/>
<DisplayName>ZeroFormatterAnalyzer</DisplayName>
<Description xml:space="preserve">New Launcher of ZeroFormatter.Analyzer</Description>
</Metadata>
Expand Down
4 changes: 2 additions & 2 deletions src/ZeroFormatter.CodeGenerator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
4 changes: 2 additions & 2 deletions src/ZeroFormatter.CodeGenerator/TypeCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ void CollectObjectSegment(INamedTypeSymbol type, bool fromNullable, bool asKey)
Name = property.Name,
Type = memberType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat),
Index = (int)index.Value,
IsGetProtected = (propSymbol != null) ? propSymbol.GetMethod.DeclaredAccessibility == Accessibility.Protected : false,
IsSetProtected = (propSymbol != null) ? propSymbol.SetMethod.DeclaredAccessibility == Accessibility.Protected : false,
IsGetProtected = (propSymbol != null) ? propSymbol?.GetMethod?.DeclaredAccessibility == Accessibility.Protected : false,
IsSetProtected = (propSymbol != null) ? propSymbol?.SetMethod?.DeclaredAccessibility == Accessibility.Protected : false,
FixedSize = length ?? 0,
IsProperty = propSymbol != null,
IsCacheSegment = !KnownFormatterSpec.IsLazySegment(memberType),
Expand Down
2 changes: 1 addition & 1 deletion src/ZeroFormatter.Interfaces.NETCore/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.6",
"version": "1.5.7",
"buildOptions": {
"outputName": "ZeroFormatter.Interfaces",
"compile": "../ZeroFormatter.Interfaces/*.cs"
Expand Down
4 changes: 2 additions & 2 deletions src/ZeroFormatter.Interfaces/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
4 changes: 2 additions & 2 deletions src/ZeroFormatter.NETCore/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.6",
"version": "1.5.7",
"buildOptions": {
"allowUnsafe": true,
"outputName": "ZeroFormatter",
Expand All @@ -24,7 +24,7 @@
"System.Text.Encoding.Extensions": "4.0.11",
"System.Collections.Concurrent": "4.0.12",
"System.ObjectModel": "4.0.12",
"ZeroFormatter.Interfaces.NETCore": "1.5.6"
"ZeroFormatter.Interfaces.NETCore": "1.5.7"
},
"frameworks": {
"netstandard1.6": {
Expand Down
6 changes: 3 additions & 3 deletions src/ZeroFormatter.NETCore/project.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
"ref/netstandard1.3/System.Threading.Tasks.dll": {}
}
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"framework": ".NETStandard,Version=v1.1",
"dependencies": {
Expand Down Expand Up @@ -2001,7 +2001,7 @@
"ref/xamarinwatchos10/_._"
]
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"path": "../ZeroFormatter.Interfaces.NETCore/project.json",
"msbuildProject": "../ZeroFormatter.Interfaces.NETCore/ZeroFormatter.Interfaces.NETCore.xproj"
Expand All @@ -2023,7 +2023,7 @@
"System.Text.Encoding >= 4.0.11",
"System.Text.Encoding.Extensions >= 4.0.11",
"System.Threading >= 4.0.11",
"ZeroFormatter.Interfaces.NETCore >= 1.5.6"
"ZeroFormatter.Interfaces.NETCore >= 1.5.7"
],
".NETStandard,Version=v1.6": []
},
Expand Down
4 changes: 2 additions & 2 deletions src/ZeroFormatter/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]


[assembly: InternalsVisibleTo("ZeroFormatter.Tests")]
Expand Down
8 changes: 4 additions & 4 deletions tests/ZeroFormatter.NETCore.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.6-*",
"version": "1.5.7-*",
"testRunner": "xunit",
"dependencies": {
"Microsoft.CSharp": "4.0.1",
Expand All @@ -8,11 +8,11 @@
"System.Dynamic.Runtime": "4.0.11",
"xunit": "2.2.0-beta3-build3402",
"dotnet-test-xunit": "2.2.0-preview2-build1029",
"ZeroFormatter.Interfaces.NETCore": "1.5.6",
"ZeroFormatter.NETCore": "1.5.6"
"ZeroFormatter.Interfaces.NETCore": "1.5.7",
"ZeroFormatter.NETCore": "1.5.7"
},
"frameworks": {
"netcoreapp1.5.6": {
"netcoreapp1.5.7": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
Expand Down
18 changes: 9 additions & 9 deletions tests/ZeroFormatter.NETCore.Tests/project.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"locked": false,
"version": 2,
"targets": {
".NETCoreApp,Version=v1.5.6": {
".NETCoreApp,Version=v1.5.7": {
"dotnet-test-xunit/2.2.0-preview2-build1029": {
"type": "package",
"dependencies": {
Expand Down Expand Up @@ -2489,7 +2489,7 @@
"lib/netstandard1.1/xunit.runner.utility.dotnet.dll": {}
}
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"framework": ".NETStandard,Version=v1.1",
"dependencies": {
Expand All @@ -2503,7 +2503,7 @@
"netstandard1.1/ZeroFormatter.Interfaces.NETCore.dll": {}
}
},
"ZeroFormatter.NETCore/1.5.6": {
"ZeroFormatter.NETCore/1.5.7": {
"type": "project",
"framework": ".NETStandard,Version=v1.6",
"dependencies": {
Expand All @@ -2521,7 +2521,7 @@
"System.Text.Encoding": "4.0.11",
"System.Text.Encoding.Extensions": "4.0.11",
"System.Threading": "4.0.11",
"ZeroFormatter.Interfaces.NETCore": "1.5.6"
"ZeroFormatter.Interfaces.NETCore": "1.5.7"
},
"compile": {
"netstandard1.6/ZeroFormatter.NETCore.dll": {}
Expand Down Expand Up @@ -7573,12 +7573,12 @@
"xunit.runner.utility.nuspec"
]
},
"ZeroFormatter.Interfaces.NETCore/1.5.6": {
"ZeroFormatter.Interfaces.NETCore/1.5.7": {
"type": "project",
"path": "../../src/ZeroFormatter.Interfaces.NETCore/project.json",
"msbuildProject": "../../src/ZeroFormatter.Interfaces.NETCore/ZeroFormatter.Interfaces.NETCore.xproj"
},
"ZeroFormatter.NETCore/1.5.6": {
"ZeroFormatter.NETCore/1.5.7": {
"type": "project",
"path": "../../src/ZeroFormatter.NETCore/project.json",
"msbuildProject": "../../src/ZeroFormatter.NETCore/ZeroFormatter.NETCore.xproj"
Expand All @@ -7590,12 +7590,12 @@
"NETStandard.Library >= 1.6.0",
"System.Diagnostics.Contracts >= 4.0.1",
"System.Dynamic.Runtime >= 4.0.11",
"ZeroFormatter.Interfaces.NETCore >= 1.5.6",
"ZeroFormatter.NETCore >= 1.5.6",
"ZeroFormatter.Interfaces.NETCore >= 1.5.7",
"ZeroFormatter.NETCore >= 1.5.7",
"dotnet-test-xunit >= 2.2.0-preview2-build1029",
"xunit >= 2.2.0-beta3-build3402"
],
".NETCoreApp,Version=v1.5.6": [
".NETCoreApp,Version=v1.5.7": [
"Microsoft.NETCore.App >= 1.0.1"
]
},
Expand Down
4 changes: 2 additions & 2 deletions tests/ZeroFormatter.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.5.6.0")]
[assembly: AssemblyFileVersion("1.5.6.0")]
[assembly: AssemblyVersion("1.5.7.0")]
[assembly: AssemblyFileVersion("1.5.7.0")]
Binary file modified tests/ZeroFormatter.UnityTests/Assets/Dlls/Sandbox.Shared.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file modified tests/ZeroFormatter.UnityTests/Assets/Dlls/ZeroFormatter.dll
Binary file not shown.
Binary file modified tests/ZeroFormatter.UnityTests/Assets/Dlls/ZeroFormatter.dll.mdb
Binary file not shown.
Loading

0 comments on commit f10f102

Please sign in to comment.