Skip to content

Commit

Permalink
Convert to project.json / .xproj files in preparation for .NET Core b…
Browse files Browse the repository at this point in the history
…uild. References #318
  • Loading branch information
Daniel15 committed Oct 2, 2016
1 parent 956530a commit 41963d6
Show file tree
Hide file tree
Showing 68 changed files with 754 additions and 1,455 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ src/React.Sample.Webpack/build
*.generated.min.js
src/React.Sample.Mvc6/wwwroot/js/Sample.js
*.lock.json
src/.vs
.vs/

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
Expand Down
93 changes: 0 additions & 93 deletions src/Cassette.React/Cassette.React.csproj

This file was deleted.

19 changes: 0 additions & 19 deletions src/Cassette.React/Cassette.React.nutrans

This file was deleted.

19 changes: 19 additions & 0 deletions src/Cassette.React/Cassette.React.xproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>b7d39e1d-6caa-4489-a03f-0c176402cfb2</ProjectGuid>
<RootNamespace>Cassette.React</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
5 changes: 0 additions & 5 deletions src/Cassette.React/packages.config

This file was deleted.

37 changes: 37 additions & 0 deletions src/Cassette.React/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"version": "2.6.0-*",
"title": "ReactJS.NET - Babel for Cassette",
"authors": [ "Daniel Lo Nigro" ],
"copyright": "Copyright 2014-Present Facebook, Inc",
"description": "Allows you to transpile JavaScript via Babel using Cassette.",

"buildOptions": {
"compile": {
"includeFiles": [
"../SharedAssemblyInfo.cs"
]
},
"xmlDoc": true
},

"packOptions": {
"iconUrl": "http://facebook.github.io/react/img/logo_og.png",
"licenseUrl": "https://github.com/reactjs/React.NET#licence",
"owners": [ "Daniel Lo Nigro" ],
"projectUrl": "http://reactjs.net/",
"summary": "ReactJS and Babel tools for .NET",
"tags": [ "asp.net", "mvc", "asp", "jquery", "javascript", "js", "react", "facebook", "reactjs", "babel", "cassette" ]
},

"dependencies": {
"Cassette": "2.4.2",
"React.Core": {
"target": "project"
}
},

"frameworks": {
"net40": {
}
}
}
6 changes: 3 additions & 3 deletions src/React.AspNet/React.AspNet.xproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
<PropertyGroup Label="Globals">
<ProjectGuid>a7acdb56-5e43-40a6-92c9-2c52228e6074</ProjectGuid>
<RootNamespace>React.AspNet</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\bin\</OutputPath>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>
13 changes: 7 additions & 6 deletions src/React.AspNet/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@
"Microsoft.Extensions.DependencyInjection": "1.0.0",
"React.Core": {
"target": "project"
},
"VroomJs": "1.2.3"
}
},
"frameworks": {
"net451": {
"bin": {
"assembly": "../../bin/React.AspNet/bin/{configuration}/net451/React.AspNet.dll",
"pdb": "../../bin/React.AspNet/bin/{configuration}/net451/React.AspNet.pdb"
}
}
},
"buildOptions": {
"compile": {
"includeFiles": [
"../SharedAssemblyInfo.cs"
]
},
"keyFile": "../key.snk",
"xmlDoc": true
}
}
4 changes: 2 additions & 2 deletions src/React.Core/JavaScriptEngineFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ protected virtual IJsPool CreatePool()
protected virtual void InitialiseEngine(IJsEngine engine)
{
var thisAssembly = typeof(ReactEnvironment).Assembly;
engine.ExecuteResource("React.Resources.shims.js", thisAssembly);
engine.ExecuteResource("React.Core.Resources.shims.js", thisAssembly);
if (_config.LoadReact)
{
// TODO: Add option to choose whether to load dev vs prod version of React.
engine.ExecuteResource("React.Resources.react.generated.js", thisAssembly);
engine.ExecuteResource("React.Core.Resources.react.generated.js", thisAssembly);
}

LoadUserScripts(engine);
Expand Down
Loading

0 comments on commit 41963d6

Please sign in to comment.