Skip to content

Commit 9965b88

Browse files
committed
Was made refactoring
1 parent bdcffcf commit 9965b88

File tree

8 files changed

+10
-17
lines changed

8 files changed

+10
-17
lines changed

samples/JavaScriptEngineSwitcher.Sample.AspNetCore1.Mvc1/JavaScriptEngineSwitcher.Sample.AspNetCore1.Mvc1.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFramework>netcoreapp1.0</TargetFramework>
66
<RuntimeFrameworkVersion>1.0.4</RuntimeFrameworkVersion>
77
<OutputType>Exe</OutputType>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
89
<PreserveCompilationContext>true</PreserveCompilationContext>
910

1011
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>

samples/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1/JavaScriptEngineSwitcher.Sample.AspNetCore1Full.Mvc1.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<VersionPrefix>2.3.2</VersionPrefix>
55
<TargetFramework>net451</TargetFramework>
66
<OutputType>Exe</OutputType>
7+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
78
<PreserveCompilationContext>true</PreserveCompilationContext>
89

910
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>

samples/JavaScriptEngineSwitcher.Sample.Logic/JavaScriptEngineSwitcher.Sample.Logic.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<PropertyGroup>
44
<VersionPrefix>2.2.0</VersionPrefix>
55
<TargetFrameworks>netstandard1.6;net451</TargetFrameworks>
6+
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.6' ">1.6.0</NetStandardImplicitPackageVersion>
67
<OutputType>Library</OutputType>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
79

810
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
911
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>

samples/JavaScriptEngineSwitcher.Sample.Resources/JavaScriptEngineSwitcher.Sample.Resources.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<TargetFrameworks>netstandard1.3;net45</TargetFrameworks>
66
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
77
<OutputType>Library</OutputType>
8+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
89

910
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
1011
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>

src/JavaScriptEngineSwitcher.ChakraCore/JavaScriptEngineSwitcher.ChakraCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<PropertyGroup>
44
<VersionPrefix>2.3.2</VersionPrefix>
55
<TargetFrameworks>netstandard1.3;net45</TargetFrameworks>
6-
<OutputType>Library</OutputType>
76
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
7+
<OutputType>Library</OutputType>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<AssemblyOriginatorKeyFile>../../tools/Key.snk</AssemblyOriginatorKeyFile>
1010
<SignAssembly>true</SignAssembly>

src/JavaScriptEngineSwitcher.Jurassic/JavaScriptEngineSwitcher.Jurassic.csproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@
2929
<ProjectReference Include="..\JavaScriptEngineSwitcher.Core\JavaScriptEngineSwitcher.Core.csproj" />
3030
</ItemGroup>
3131

32-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
33-
</ItemGroup>
34-
35-
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
36-
</ItemGroup>
37-
3832
</Project>

src/JavaScriptEngineSwitcher.V8/JavaScriptEngineSwitcher.V8.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,11 @@
2525
<Reference Include="ClearScript">
2626
<HintPath>..\..\lib\ClearScript\ClearScript.dll</HintPath>
2727
</Reference>
28+
<Reference Include="Microsoft.CSharp" />
2829

2930
<ProjectReference Include="..\JavaScriptEngineSwitcher.Core\JavaScriptEngineSwitcher.Core.csproj" />
3031
</ItemGroup>
3132

32-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
33-
</ItemGroup>
34-
35-
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
36-
<Reference Include="Microsoft.CSharp" />
37-
</ItemGroup>
38-
3933
<Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
4034
<Exec Command="../../build resx" />
4135
</Target>

test/JavaScriptEngineSwitcher.Tests/JavaScriptEngineSwitcher.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040

4141
<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
4242
<Reference Include="System.Drawing" />
43-
43+
4444
<PackageReference Include="JavaScriptEngineSwitcher.V8.Native.win-x64" Version="2.2.0" />
4545
<PackageReference Include="JavaScriptEngineSwitcher.V8.Native.win-x86" Version="2.2.0" />
46-
46+
4747
<ProjectReference Include="..\..\src\JavaScriptEngineSwitcher.Jurassic\JavaScriptEngineSwitcher.Jurassic.csproj" />
4848
<ProjectReference Include="..\..\src\JavaScriptEngineSwitcher.V8\JavaScriptEngineSwitcher.V8.csproj" />
4949
</ItemGroup>
50-
50+
5151
<ItemGroup>
5252
<EmbeddedResource Include="Resources\cube.js;Resources\power.js" />
5353
</ItemGroup>

0 commit comments

Comments
 (0)