From e6c66e88b1ef82c623e4d204e89a331fbbe5bc80 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 14:32:37 -0700 Subject: [PATCH 01/13] MyGet publish --- appveyor.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 9413e561f..d41c16c31 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,7 +5,18 @@ cache: install: - git submodule update --init --recursive - nuget restore JSIL.sln + - choco install gitversion.portable + - GitVersion /output json /showvariable NuGetVersionV2 > version.log + - set /p JsilVersion= < version.log build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA + - NuGet pack JSIL.nuspec -Version %JsilVersion% test_script: - - nunit-console-x86 bin\Tests.DCE.dll bin\SimpleTests.dll bin\Tests.dll /include:"FailsOnMono|(FailsOnMonoWhenStubbed+Stubbed)|(FailsOnMonoWhenStubbed+Translated)" \ No newline at end of file + - nunit-console-x86 bin\Tests.DCE.dll bin\SimpleTests.dll bin\Tests.dll /include:"FailsOnMono|(FailsOnMonoWhenStubbed+Stubbed)|(FailsOnMonoWhenStubbed+Translated)" +deploy: + provider: NuGet + server: https://www.myget.org/F/iskiselev/api/v2/package + api_key: + secure: WErGDvZpSSAr+nQs6+5K8wKAQkS7YKb56T8sJ7gCI85Rh8dlEnE6CiMQ5SyUjE69 + skip_symbols: true + artifact: /.*\.nupkg/ \ No newline at end of file From e74e1877bb4ee801128d94e04a53fd5b36e6c1c9 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 14:36:07 -0700 Subject: [PATCH 02/13] NuSpec added. --- JSIL.nuspec | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 JSIL.nuspec diff --git a/JSIL.nuspec b/JSIL.nuspec new file mode 100644 index 000000000..f5702ace2 --- /dev/null +++ b/JSIL.nuspec @@ -0,0 +1,32 @@ + + + + JSIL.Compiler + $version$ + Squared Interactive + JSIL Command Line Compiler + en-US + https://github.com/sq/JSIL + https://github.com/sq/JSIL/blob/master/LICENSE + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From 517b7445d89082c14ae057ddebca9150a7a4b60c Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 14:51:10 -0700 Subject: [PATCH 03/13] Artifacts setting added. --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index d41c16c31..baf460aea 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,8 @@ build_script: - NuGet pack JSIL.nuspec -Version %JsilVersion% test_script: - nunit-console-x86 bin\Tests.DCE.dll bin\SimpleTests.dll bin\Tests.dll /include:"FailsOnMono|(FailsOnMonoWhenStubbed+Stubbed)|(FailsOnMonoWhenStubbed+Translated)" +artifacts: + - path: '*.nupkg' deploy: provider: NuGet server: https://www.myget.org/F/iskiselev/api/v2/package From 9b3047e6b1ac905a8bd9618ed00de3af5341b78b Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 15:43:31 -0700 Subject: [PATCH 04/13] Updated settings. --- GitVersion.yml | 6 ++++++ appveyor.yml | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 GitVersion.yml diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 000000000..bf263de39 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,6 @@ +assembly-versioning-scheme: None +mode: ContinuousDeployment +next-version: 0.9.1 +branches: {} +ignore: + sha: [] diff --git a/appveyor.yml b/appveyor.yml index baf460aea..cf16e4c48 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,12 +5,13 @@ cache: install: - git submodule update --init --recursive - nuget restore JSIL.sln - - choco install gitversion.portable - - GitVersion /output json /showvariable NuGetVersionV2 > version.log - - set /p JsilVersion= < version.log + - choco install gitversion.portable -pre -y + - ps: gitversion /l console /output buildserver /updateAssemblyInfo build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA - NuGet pack JSIL.nuspec -Version %JsilVersion% +after_build: + - cmd: nuget pack JSIL.nuspec -version "%GitVersion_NuGetVersion%" test_script: - nunit-console-x86 bin\Tests.DCE.dll bin\SimpleTests.dll bin\Tests.dll /include:"FailsOnMono|(FailsOnMonoWhenStubbed+Stubbed)|(FailsOnMonoWhenStubbed+Translated)" artifacts: From 0637214c6b00883218b8d4a088afc8f6950db2d6 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 16:12:32 -0700 Subject: [PATCH 05/13] Use JSIL\Properties\GlobalAssemblyInfo.cs for version-tracking attributes --- .../JSIL.DeadCodeAnalyzer.csproj | 3 +++ .../Properties/AssemblyInfo.cs | 19 +----------------- Compiler/Compiler.Executor.32bit.csproj | 6 +++++- Compiler/Compiler.csproj | 5 ++++- Compiler/Profiles/XNA4/Profiles.XNA4.csproj | 3 +++ .../Profiles/XNA4/Properties/AssemblyInfo.cs | 20 +------------------ Compiler/Properties/AssemblyInfo.cs | 19 +----------------- JSIL.mscorlib/JSIL.mscorlib.csproj | 3 +++ JSIL/JSIL.csproj | 1 + JSIL/Properties/AssemblyInfo.cs | 17 ---------------- JSIL/Properties/GlobalAssemblyInfo.cs | 13 ++++++++++++ Proxies/BCL/Properties/AssemblyInfo.cs | 20 +------------------ Proxies/BCL/Proxies.Bcl.csproj | 3 +++ Proxies/Properties/AssemblyInfo.cs | 20 +------------------ Proxies/Proxies.4.0.csproj | 3 +++ Proxies/XNA4/Properties/AssemblyInfo.cs | 18 ----------------- Proxies/XNA4/Proxies.XNA4.csproj | 3 +++ Tests.DCE/Properties/AssemblyInfo.cs | 20 +------------------ Tests.DCE/Tests.DCE.csproj | 3 +++ Tests/Properties/AssemblyInfo.cs | 20 +------------------ Tests/SimpleTests.csproj | 3 +++ Tests/Tests.csproj | 3 +++ appveyor.yml | 2 +- 23 files changed, 58 insertions(+), 169 deletions(-) create mode 100644 JSIL/Properties/GlobalAssemblyInfo.cs diff --git a/Compiler/Analyzers/DeadCodeAnalyzer/JSIL.DeadCodeAnalyzer.csproj b/Compiler/Analyzers/DeadCodeAnalyzer/JSIL.DeadCodeAnalyzer.csproj index 4c228093d..ebfa6f638 100644 --- a/Compiler/Analyzers/DeadCodeAnalyzer/JSIL.DeadCodeAnalyzer.csproj +++ b/Compiler/Analyzers/DeadCodeAnalyzer/JSIL.DeadCodeAnalyzer.csproj @@ -49,6 +49,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Compiler/Analyzers/DeadCodeAnalyzer/Properties/AssemblyInfo.cs b/Compiler/Analyzers/DeadCodeAnalyzer/Properties/AssemblyInfo.cs index eb7309db9..ad3936617 100644 --- a/Compiler/Analyzers/DeadCodeAnalyzer/Properties/AssemblyInfo.cs +++ b/Compiler/Analyzers/DeadCodeAnalyzer/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("Dead code analyzer")] [assembly: AssemblyDescription(".NET assembly dead code analyzer for JSIL")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Dead code analyzer")] -[assembly: AssemblyCopyright("Copyright © 2014")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,16 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("8d203439-f730-4ea9-aff7-a2885947080a")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.1.0.0")] \ No newline at end of file +[assembly: Guid("8d203439-f730-4ea9-aff7-a2885947080a")] \ No newline at end of file diff --git a/Compiler/Compiler.Executor.32bit.csproj b/Compiler/Compiler.Executor.32bit.csproj index 349f96a36..6a1db640b 100644 --- a/Compiler/Compiler.Executor.32bit.csproj +++ b/Compiler/Compiler.Executor.32bit.csproj @@ -14,7 +14,7 @@ 512 v4.5 - 5 + 5 true @@ -37,6 +37,10 @@ jsil.ico + + + Properties\GlobalAssemblyInfo.cs + diff --git a/Compiler/Compiler.csproj b/Compiler/Compiler.csproj index 9df4c4021..7d3670273 100644 --- a/Compiler/Compiler.csproj +++ b/Compiler/Compiler.csproj @@ -63,6 +63,10 @@ + + + Properties\GlobalAssemblyInfo.cs + @@ -75,7 +79,6 @@ - diff --git a/Compiler/Profiles/XNA4/Profiles.XNA4.csproj b/Compiler/Profiles/XNA4/Profiles.XNA4.csproj index 5300ea9a9..09f6fef57 100644 --- a/Compiler/Profiles/XNA4/Profiles.XNA4.csproj +++ b/Compiler/Profiles/XNA4/Profiles.XNA4.csproj @@ -45,6 +45,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Compiler/Profiles/XNA4/Properties/AssemblyInfo.cs b/Compiler/Profiles/XNA4/Properties/AssemblyInfo.cs index 1347deca0..1cc5cd80e 100644 --- a/Compiler/Profiles/XNA4/Properties/AssemblyInfo.cs +++ b/Compiler/Profiles/XNA4/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("XNA4")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("XNA4")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,17 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("d8124711-3e7f-47ac-a08d-4ab7de555aee")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: Guid("d8124711-3e7f-47ac-a08d-4ab7de555aee")] \ No newline at end of file diff --git a/Compiler/Properties/AssemblyInfo.cs b/Compiler/Properties/AssemblyInfo.cs index ab6121707..50a6cd9cd 100644 --- a/Compiler/Properties/AssemblyInfo.cs +++ b/Compiler/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("JSILc")] [assembly: AssemblyDescription("JSIL Command Line Compiler")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,16 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("e2342fc2-c01e-470e-8191-fd22b94bb455")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.2.*")] +[assembly: Guid("e2342fc2-c01e-470e-8191-fd22b94bb455")] \ No newline at end of file diff --git a/JSIL.mscorlib/JSIL.mscorlib.csproj b/JSIL.mscorlib/JSIL.mscorlib.csproj index 3e44b6dcd..5f9d2797d 100644 --- a/JSIL.mscorlib/JSIL.mscorlib.csproj +++ b/JSIL.mscorlib/JSIL.mscorlib.csproj @@ -41,6 +41,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/JSIL/JSIL.csproj b/JSIL/JSIL.csproj index 0a1dea55b..41fc605b6 100644 --- a/JSIL/JSIL.csproj +++ b/JSIL/JSIL.csproj @@ -85,6 +85,7 @@ + diff --git a/JSIL/Properties/AssemblyInfo.cs b/JSIL/Properties/AssemblyInfo.cs index b6fa9bba6..aa9cb52b1 100644 --- a/JSIL/Properties/AssemblyInfo.cs +++ b/JSIL/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("JSIL")] [assembly: AssemblyDescription("MSIL to Javascript Translator Library")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -21,15 +16,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("ab70f926-4c13-4da0-926c-05642b4857a7")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.8.2.*")] diff --git a/JSIL/Properties/GlobalAssemblyInfo.cs b/JSIL/Properties/GlobalAssemblyInfo.cs new file mode 100644 index 000000000..a67054205 --- /dev/null +++ b/JSIL/Properties/GlobalAssemblyInfo.cs @@ -0,0 +1,13 @@ +using System.Reflection; + +// 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: AssemblyCompany("Squared Interactive")] +[assembly: AssemblyProduct("JSIL")] +[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] +[assembly: AssemblyTrademark("")] + +[assembly: AssemblyVersion("0.9.0.0")] +[assembly: AssemblyInformationalVersion("0.9.0-local")] +[assembly: AssemblyFileVersion("0.9.0.0")] \ No newline at end of file diff --git a/Proxies/BCL/Properties/AssemblyInfo.cs b/Proxies/BCL/Properties/AssemblyInfo.cs index a279c8589..4b504dad8 100644 --- a/Proxies/BCL/Properties/AssemblyInfo.cs +++ b/Proxies/BCL/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("JSIL Proxies BLC")] [assembly: AssemblyDescription("JSIL Standard Type Proxies for BCL assemblies")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,17 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("8BB79C50-0821-4C59-AFF8-21F25591F0E4")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: Guid("8BB79C50-0821-4C59-AFF8-21F25591F0E4")] \ No newline at end of file diff --git a/Proxies/BCL/Proxies.Bcl.csproj b/Proxies/BCL/Proxies.Bcl.csproj index a115dad89..1873d74eb 100644 --- a/Proxies/BCL/Proxies.Bcl.csproj +++ b/Proxies/BCL/Proxies.Bcl.csproj @@ -36,6 +36,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Proxies/Properties/AssemblyInfo.cs b/Proxies/Properties/AssemblyInfo.cs index a91ae75f4..0501077f5 100644 --- a/Proxies/Properties/AssemblyInfo.cs +++ b/Proxies/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("JSIL Proxies")] [assembly: AssemblyDescription("JSIL Standard Type Proxies")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,17 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("28ac4af1-39f8-41f5-9d58-83b0b906156f")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: Guid("28ac4af1-39f8-41f5-9d58-83b0b906156f")] \ No newline at end of file diff --git a/Proxies/Proxies.4.0.csproj b/Proxies/Proxies.4.0.csproj index 741b4772a..b0104ccfc 100644 --- a/Proxies/Proxies.4.0.csproj +++ b/Proxies/Proxies.4.0.csproj @@ -35,6 +35,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Proxies/XNA4/Properties/AssemblyInfo.cs b/Proxies/XNA4/Properties/AssemblyInfo.cs index c2636547b..e29c9a7fd 100644 --- a/Proxies/XNA4/Properties/AssemblyInfo.cs +++ b/Proxies/XNA4/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("JSIL Proxies")] [assembly: AssemblyDescription("JSIL XNA Type Proxies")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -21,16 +16,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e5eb9c65-1323-4620-bae8-c856b9df3a99")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Proxies/XNA4/Proxies.XNA4.csproj b/Proxies/XNA4/Proxies.XNA4.csproj index c65c2d004..55831776d 100644 --- a/Proxies/XNA4/Proxies.XNA4.csproj +++ b/Proxies/XNA4/Proxies.XNA4.csproj @@ -45,6 +45,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Tests.DCE/Properties/AssemblyInfo.cs b/Tests.DCE/Properties/AssemblyInfo.cs index 06be022a3..6c6934c82 100644 --- a/Tests.DCE/Properties/AssemblyInfo.cs +++ b/Tests.DCE/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("Tests.DCE")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Tests.DCE")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,17 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("940a7fc1-3cff-43cf-bac7-a27ab18cd0b1")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: Guid("940a7fc1-3cff-43cf-bac7-a27ab18cd0b1")] \ No newline at end of file diff --git a/Tests.DCE/Tests.DCE.csproj b/Tests.DCE/Tests.DCE.csproj index 3087e38bb..c4725427e 100644 --- a/Tests.DCE/Tests.DCE.csproj +++ b/Tests.DCE/Tests.DCE.csproj @@ -76,6 +76,9 @@ + + GlobalAssemblyInfo.cs + diff --git a/Tests/Properties/AssemblyInfo.cs b/Tests/Properties/AssemblyInfo.cs index 51071f128..9ada073fa 100644 --- a/Tests/Properties/AssemblyInfo.cs +++ b/Tests/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following @@ -8,10 +7,6 @@ [assembly: AssemblyTitle("Tests")] [assembly: AssemblyDescription("JSIL Test Suite")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Squared Interactive")] -[assembly: AssemblyProduct("JSIL")] -[assembly: AssemblyCopyright("Copyright © Squared Interactive 2011")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -20,17 +15,4 @@ [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("ca7c359b-0f27-40c7-ba51-7220a6c69e65")] - -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: Guid("ca7c359b-0f27-40c7-ba51-7220a6c69e65")] \ No newline at end of file diff --git a/Tests/SimpleTests.csproj b/Tests/SimpleTests.csproj index 6c9957201..91b562b5d 100644 --- a/Tests/SimpleTests.csproj +++ b/Tests/SimpleTests.csproj @@ -110,6 +110,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 3a5f55f23..6a6df9223 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -161,6 +161,9 @@ + + Properties\GlobalAssemblyInfo.cs + diff --git a/appveyor.yml b/appveyor.yml index cf16e4c48..c74fba009 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,7 @@ install: - git submodule update --init --recursive - nuget restore JSIL.sln - choco install gitversion.portable -pre -y - - ps: gitversion /l console /output buildserver /updateAssemblyInfo + - ps: gitversion /l console /output buildserver /updateAssemblyInfo JSIL\Properties\GlobalAssemblyInfo.cs build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA - NuGet pack JSIL.nuspec -Version %JsilVersion% From 7e5a437ddf934231a5e9af57dddd8842ac424e6f Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 16:20:46 -0700 Subject: [PATCH 06/13] Configured AssemblySemVer. --- GitVersion.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitVersion.yml b/GitVersion.yml index bf263de39..2d0a1a661 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,4 +1,4 @@ -assembly-versioning-scheme: None +assembly-versioning-scheme: MajorMinorPatch mode: ContinuousDeployment next-version: 0.9.1 branches: {} From 5a5a3aff573ac5b84fc50a23fb55eccf751c373e Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 16:27:49 -0700 Subject: [PATCH 07/13] Fixed AssemblyInfo --- JSIL.mscorlib/Properties/AssemblyInfo.cs | 16 ---------------- Tests.DCE/Tests.DCE.csproj | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/JSIL.mscorlib/Properties/AssemblyInfo.cs b/JSIL.mscorlib/Properties/AssemblyInfo.cs index 3a9b1e13e..56874004c 100644 --- a/JSIL.mscorlib/Properties/AssemblyInfo.cs +++ b/JSIL.mscorlib/Properties/AssemblyInfo.cs @@ -9,10 +9,6 @@ [assembly: AssemblyTitle("JSIL.mscorlib")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("JSIL.mscorlib")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -23,17 +19,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("aef2633e-e92c-4a0d-b8e0-a072ed404af7")] -// 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 Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: JSRepaceAssemblyDeclaration("mscorlib")] [assembly: JSOverrideAssemblyReference(typeof(object), "mscorlib")] \ No newline at end of file diff --git a/Tests.DCE/Tests.DCE.csproj b/Tests.DCE/Tests.DCE.csproj index c4725427e..8ddaa0863 100644 --- a/Tests.DCE/Tests.DCE.csproj +++ b/Tests.DCE/Tests.DCE.csproj @@ -77,7 +77,7 @@ - GlobalAssemblyInfo.cs + Properties\GlobalAssemblyInfo.cs From 0e4a709a332f9975232a078c843a01c75cbc98f5 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 16:31:25 -0700 Subject: [PATCH 08/13] Appveyor script fixed --- appveyor.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index c74fba009..84309e3ed 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,7 +9,6 @@ install: - ps: gitversion /l console /output buildserver /updateAssemblyInfo JSIL\Properties\GlobalAssemblyInfo.cs build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA - - NuGet pack JSIL.nuspec -Version %JsilVersion% after_build: - cmd: nuget pack JSIL.nuspec -version "%GitVersion_NuGetVersion%" test_script: From 59662ad4d534125d4a604b1ca69c959fbf9fb6c3 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 22:42:20 -0700 Subject: [PATCH 09/13] JSIL.MsBuild added. --- MsBuild/JSIL.MsBuild.nuspec | 18 ++++++++++++++++++ MsBuild/JSIL.targets | 6 ++++++ appveyor.yml | 2 ++ 3 files changed, 26 insertions(+) create mode 100644 MsBuild/JSIL.MsBuild.nuspec create mode 100644 MsBuild/JSIL.targets diff --git a/MsBuild/JSIL.MsBuild.nuspec b/MsBuild/JSIL.MsBuild.nuspec new file mode 100644 index 000000000..5a4c5d944 --- /dev/null +++ b/MsBuild/JSIL.MsBuild.nuspec @@ -0,0 +1,18 @@ + + + + JSIL.MsBuild + $version$ + Squared Interactive + JSIL MsBuild Integration + en-US + https://github.com/sq/JSIL + https://github.com/sq/JSIL/blob/master/LICENSE + + + + + + + + \ No newline at end of file diff --git a/MsBuild/JSIL.targets b/MsBuild/JSIL.targets new file mode 100644 index 000000000..01ad432bb --- /dev/null +++ b/MsBuild/JSIL.targets @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 84309e3ed..b390b4998 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,9 @@ install: build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA after_build: + - ps: (gc MsBuild\JSIL.targets) -replace '$VERSION$', $Env:GitVersion_NuGetVersion | Out-File MsBuild\JSIL.targets - cmd: nuget pack JSIL.nuspec -version "%GitVersion_NuGetVersion%" + - cmd: nuget pack MsBuild\JSIL.MsBuild.nuspec -version "%GitVersion_NuGetVersion%" test_script: - nunit-console-x86 bin\Tests.DCE.dll bin\SimpleTests.dll bin\Tests.dll /include:"FailsOnMono|(FailsOnMonoWhenStubbed+Stubbed)|(FailsOnMonoWhenStubbed+Translated)" artifacts: From 6e37485ad0d6266327dcc2406fe3ec8258a939cc Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Wed, 20 Jul 2016 23:42:04 -0700 Subject: [PATCH 10/13] Fixed JSIL.MsBuild --- MsBuild/JSIL.MsBuild.nuspec | 2 +- MsBuild/{JSIL.targets => JSIL.MsBuild.targets} | 4 ++-- appveyor.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename MsBuild/{JSIL.targets => JSIL.MsBuild.targets} (64%) diff --git a/MsBuild/JSIL.MsBuild.nuspec b/MsBuild/JSIL.MsBuild.nuspec index 5a4c5d944..71986cf93 100644 --- a/MsBuild/JSIL.MsBuild.nuspec +++ b/MsBuild/JSIL.MsBuild.nuspec @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/MsBuild/JSIL.targets b/MsBuild/JSIL.MsBuild.targets similarity index 64% rename from MsBuild/JSIL.targets rename to MsBuild/JSIL.MsBuild.targets index 01ad432bb..324e2fdc0 100644 --- a/MsBuild/JSIL.targets +++ b/MsBuild/JSIL.MsBuild.targets @@ -1,6 +1,6 @@ - - + + \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index b390b4998..05116ec25 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,7 @@ install: build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA after_build: - - ps: (gc MsBuild\JSIL.targets) -replace '$VERSION$', $Env:GitVersion_NuGetVersion | Out-File MsBuild\JSIL.targets + - ps: (gc MsBuild\JSIL.MsBuild.targets) -replace '%VERSION%', $Env:GitVersion_NuGetVersion | Out-File MsBuild\JSIL.MsBuild.targets - cmd: nuget pack JSIL.nuspec -version "%GitVersion_NuGetVersion%" - cmd: nuget pack MsBuild\JSIL.MsBuild.nuspec -version "%GitVersion_NuGetVersion%" test_script: From 3f1e03cae027384a10e9b00a090f7b3e569425a8 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Thu, 21 Jul 2016 00:16:23 -0700 Subject: [PATCH 11/13] Targets encoding fixed. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 05116ec25..680bdb387 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,7 +10,7 @@ install: build_script: - msbuild "JSIL.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /P:Platform=NoXNA after_build: - - ps: (gc MsBuild\JSIL.MsBuild.targets) -replace '%VERSION%', $Env:GitVersion_NuGetVersion | Out-File MsBuild\JSIL.MsBuild.targets + - ps: (gc MsBuild\JSIL.MsBuild.targets) -replace '%VERSION%', $Env:GitVersion_NuGetVersion | Out-File -Encoding "UTF8" MsBuild\JSIL.MsBuild.targets - cmd: nuget pack JSIL.nuspec -version "%GitVersion_NuGetVersion%" - cmd: nuget pack MsBuild\JSIL.MsBuild.nuspec -version "%GitVersion_NuGetVersion%" test_script: From 0473c5fbda9436c124717198a68d0cb33394dedb Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Thu, 21 Jul 2016 16:07:39 -0700 Subject: [PATCH 12/13] Implemented setting to copy Libraries content. --- Compiler/Configuration.cs | 4 ++++ Compiler/Extensibility/IProfile.cs | 2 +- Compiler/Profiles/Base.cs | 25 +++++++++++++++++++++++-- Compiler/Program.cs | 19 ++++++++++++++----- JSIL.nuspec | 2 ++ 5 files changed, 44 insertions(+), 8 deletions(-) diff --git a/Compiler/Configuration.cs b/Compiler/Configuration.cs index 7d97adfbb..18f34de9b 100644 --- a/Compiler/Configuration.cs +++ b/Compiler/Configuration.cs @@ -43,6 +43,7 @@ public void MergeInto (SolutionBuildConfiguration result) { public bool? ReuseTypeInfoAcrossAssemblies; public bool? ProxyWarnings; public string OutputDirectory; + public string JsLibrariesOutputDirectory; public string FileOutputDirectory; public string Profile; public Dictionary ProfileSettings = new Dictionary(); @@ -66,6 +67,8 @@ public override void MergeInto (JSIL.Translator.Configuration result) { cc.ReuseTypeInfoAcrossAssemblies = ReuseTypeInfoAcrossAssemblies; if (OutputDirectory != null) cc.OutputDirectory = OutputDirectory; + if (JsLibrariesOutputDirectory != null) + cc.JsLibrariesOutputDirectory = JsLibrariesOutputDirectory; if (FileOutputDirectory != null) cc.FileOutputDirectory = FileOutputDirectory; if (Profile != null) @@ -108,6 +111,7 @@ public VariableSet ApplyTo (VariableSet variables) { result["CurrentDirectory"] = () => Environment.CurrentDirectory; result["ConfigDirectory"] = () => Path; result["OutputDirectory"] = () => OutputDirectory; + result["JsLibrariesOutputDirectory"] = () => JsLibrariesOutputDirectory; result["FileOutputDirectory"] = () => FileOutputDirectory; result["Profile"] = () => Profile; diff --git a/Compiler/Extensibility/IProfile.cs b/Compiler/Extensibility/IProfile.cs index 3e323b7da..76ec17de4 100644 --- a/Compiler/Extensibility/IProfile.cs +++ b/Compiler/Extensibility/IProfile.cs @@ -18,7 +18,7 @@ TranslationResultCollection Translate ( Configuration configuration, string assemblyPath, bool scanForProxies ); void WriteOutputs ( - VariableSet variables, TranslationResultCollection result, string path, bool quiet + VariableSet variables, TranslationResultCollection result, Configuration path, bool quiet ); void RegisterPostprocessors (IEnumerable emitters, Configuration configuration, string assemblyPath, string[] skippedAssemblies); diff --git a/Compiler/Profiles/Base.cs b/Compiler/Profiles/Base.cs index e470d20d5..4b11b3d6e 100644 --- a/Compiler/Profiles/Base.cs +++ b/Compiler/Profiles/Base.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Reflection; using JSIL.Compiler.Extensibility; using JSIL.Utilities; @@ -24,7 +25,7 @@ public virtual TranslationResultCollection Translate ( public virtual void RegisterPostprocessors (IEnumerable emitters, Configuration configuration, string assemblyPath, string[] skippedAssemblies) { } - public virtual void WriteOutputs (VariableSet variables, TranslationResultCollection result, string path,bool quiet) { + public virtual void WriteOutputs (VariableSet variables, TranslationResultCollection result, Configuration configuration, bool quiet) { foreach (var translationResult in result.TranslationResults) { if (!quiet) { @@ -32,7 +33,27 @@ public virtual void WriteOutputs (VariableSet variables, TranslationResultCollec Console.WriteLine(fe.Filename); } - translationResult.WriteToDirectory(path); + translationResult.WriteToDirectory(configuration.OutputDirectory); + } + + var jsilPath = Path.GetDirectoryName(JSIL.Internal.Util.GetPathOfAssembly(Assembly.GetExecutingAssembly())); + var searchPath = Path.Combine(jsilPath, "JS Libraries\\JsLibraries\\"); + if (!string.IsNullOrEmpty(configuration.JsLibrariesOutputDirectory) && Directory.Exists(searchPath)) + { + foreach (var file in Directory.GetFiles(searchPath, "*", SearchOption.AllDirectories)) { + var target = Uri.UnescapeDataString(Path.Combine(configuration.JsLibrariesOutputDirectory, new Uri(searchPath).MakeRelativeUri(new Uri(file)).ToString())) + .Replace('/', Path.DirectorySeparatorChar); + var directory = Path.GetDirectoryName(target); + if (!Directory.Exists(directory)) + Directory.CreateDirectory(directory); + + File.Copy(file, target, true); + + if (!quiet) + { + Console.WriteLine(target); + } + } } } diff --git a/Compiler/Program.cs b/Compiler/Program.cs index 0dfa6e519..b86baa5ea 100644 --- a/Compiler/Program.cs +++ b/Compiler/Program.cs @@ -188,6 +188,9 @@ AssemblyCache assemblyCache {"o=|out=", "Specifies the output directory for generated javascript and manifests.", (path) => commandLineConfig.OutputDirectory = Path.GetFullPath(path) }, + {"outLibraries=", + "Specifies the output directory for JSIL Libraries.", + (path) => commandLineConfig.JsLibrariesOutputDirectory = Path.GetFullPath(path) }, {"q|quiet", "Suppresses non-error/non-warning stderr messages.", (_) => commandLineConfig.Quiet = Quiet = true }, @@ -822,10 +825,16 @@ static void InternalMain (string[] arguments) { if (localConfig.OutputDirectory == null) throw new Exception("No output directory was specified!"); - var outputDir = MapPath(localConfig.OutputDirectory, localVariables, false); - CopiedOutputGatherer.EnsureDirectoryExists(outputDir); + localConfig.OutputDirectory = MapPath(localConfig.OutputDirectory, localVariables, false); + CopiedOutputGatherer.EnsureDirectoryExists(localConfig.OutputDirectory); - InformationWriteLine("// Saving output to '{0}'.", ShortenPath(outputDir) + Path.DirectorySeparatorChar); + InformationWriteLine("// Saving output to '{0}'.", ShortenPath(localConfig.OutputDirectory) + Path.DirectorySeparatorChar); + + if (!string.IsNullOrEmpty(localConfig.JsLibrariesOutputDirectory)) + { + localConfig.JsLibrariesOutputDirectory = MapPath(localConfig.JsLibrariesOutputDirectory, localVariables, false); + CopiedOutputGatherer.EnsureDirectoryExists(localConfig.JsLibrariesOutputDirectory); + } // Ensures that the log file contains the name of the profile that was actually used. localConfig.Profile = localProfile.GetType().Name; @@ -833,9 +842,9 @@ static void InternalMain (string[] arguments) { if (ignoredMethods.Count > 0) Console.Error.WriteLine("// {0} method(s) were ignored during translation. See the log for a list.", ignoredMethods.Count); - EmitLog(outputDir, localConfig, filename, outputs, ignoredMethods); + EmitLog(localConfig.OutputDirectory, localConfig, filename, outputs, ignoredMethods); - buildGroup.Profile.WriteOutputs(localVariables, outputs, outputDir, Quiet); + buildGroup.Profile.WriteOutputs(localVariables, outputs, localConfig, Quiet); totalFailureCount += translator.Failures.Count; } diff --git a/JSIL.nuspec b/JSIL.nuspec index f5702ace2..d16a8348d 100644 --- a/JSIL.nuspec +++ b/JSIL.nuspec @@ -28,5 +28,7 @@ + + \ No newline at end of file From 17cffd660bd787e599dbffcf1d65f1874935f7c7 Mon Sep 17 00:00:00 2001 From: Igor Kiselev Date: Thu, 21 Jul 2016 16:43:26 -0700 Subject: [PATCH 13/13] Updated config for JSIL feed. --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 680bdb387..690fa56c2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -19,8 +19,8 @@ artifacts: - path: '*.nupkg' deploy: provider: NuGet - server: https://www.myget.org/F/iskiselev/api/v2/package + server: https://www.myget.org/F/jsil/api/v2/package api_key: - secure: WErGDvZpSSAr+nQs6+5K8wKAQkS7YKb56T8sJ7gCI85Rh8dlEnE6CiMQ5SyUjE69 + secure: EBvntnmrV7ni1xQY8grb2sUAOeMlNqGkkqRSdMJrLPG5N42YRCxhZ7DT5Nor/l6k skip_symbols: true artifact: /.*\.nupkg/ \ No newline at end of file