forked from Taritsyn/JavaScriptEngineSwitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJavaScriptEngineSwitcher.Core.csproj
More file actions
56 lines (49 loc) · 3.51 KB
/
JavaScriptEngineSwitcher.Core.csproj
File metadata and controls
56 lines (49 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Product>JS Engine Switcher: Core</Product>
<VersionPrefix>3.0.0</VersionPrefix>
<TargetFrameworks>net40-client;net45;netstandard1.3;netstandard2.0</TargetFrameworks>
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
<OutputType>Library</OutputType>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;NU5125</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DisableDefaultResxToCsConversionTarget>true</DisableDefaultResxToCsConversionTarget>
<Description>JavaScript Engine Switcher determines unified interface for access to the basic features of popular JavaScript engines (MSIE JavaScript Engine for .NET, Microsoft ClearScript.V8, Jurassic, Jint, ChakraCore, VroomJs and NiL.JS). This library allows you to quickly and easily switch to using of another JavaScript engine.</Description>
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/master/Icons/JavaScriptEngineSwitcher_Core_Logo128x128.png</PackageIconUrl>
<PackageTags>JavaScriptEngineSwitcher;JavaScript;ECMAScript</PackageTags>
<PackageReleaseNotes>1. In the `JsEngineSwitcher` class a `Instance` property was renamed to the `Current` property;
2. Now you can implement your own version of the `JsEngineSwitcher` class;
3. Format of the error messages was unified;
4. Created a new exception classes: `JsCompilationException`, `JsEngineException`, `JsFatalException`, `JsInterruptedException`, `JsTimeoutException`, `JsScriptException` and `JsUsageException`. These exceptions are responsible for handling errors, some of which were previously handled by the `JsRuntimeException` class;
5. In the `JsException` class was added two new properties: `Category` and `Description`;
6. From the `JsRuntimeException` class was removed one property - `ErrorCode`;
7. In the `JsRuntimeException` class was added three new properties: `Type`, `DocumentName` and `CallStack`;
8. `JsEngineLoadException` class now is inherited from the `JsEngineException` class;
9. Removed a `EmptyValueException` class;
10. `Format` method of the `JsErrorHelpers` class was renamed to the `GenerateErrorDetails`;
11. Part of the auxiliary code was moved to external libraries: PolyfillsForOldDotNet and AdvancedStringBuilder;
12. In `IJsEngine` interface was added two new properties: `SupportsScriptInterruption` and `SupportsScriptPrecompilation`, and four new methods: `Interrupt`, `Precompile`, `PrecompileFile` and `PrecompileResource`;
13. Added support of .NET Standard 2.0.</PackageReleaseNotes>
</PropertyGroup>
<Import Project="../../build/common.props" />
<Import Project="../../build/net40-client-target.props" />
<Import Project="../../build/strong-name-signing.props" />
<Import Project="../../build/nuget-metadata.props" />
<ItemGroup>
<PackageReference Include="AdvancedStringBuilder" Version="0.1.0" />
<PackageReference Include="ResxToCs.MSBuild" Version="1.0.0-alpha6" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
<PackageReference Include="System.ComponentModel.TypeConverter" Version="4.1.0" />
</ItemGroup>
<ItemGroup>
<Content Include="readme.txt">
<PackagePath>readme.txt</PackagePath>
<Pack>true</Pack>
</Content>
</ItemGroup>
<Target Name="СonvertResxToCs" BeforeTargets="BeforeCompile">
<ResxToCsTask InputDirectory="./Resources/" Namespace="$(RootNamespace).Resources" />
</Target>
</Project>