Skip to content

Commit b93148e

Browse files
committed
Minor fixes to ASP.NET 5 Beta 4 support
1 parent fa78768 commit b93148e

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ src/React.Sample.Webpack/build
1111
*.generated.js.map
1212
src/React.Sample.Mvc6/wwwroot/js/Sample.js
1313
*.lock.json
14+
src/.vs
1415

1516
## Ignore Visual Studio temporary files, build results, and
1617
## files generated by popular Visual Studio add-ons.

site/jekyll/getting-started/aspnet5.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ app.UseStaticFiles();
3737
Add:
3838

3939
```csharp
40-
app.UseRequestServices();
4140
app.UseReact(config =>
4241
{
4342
// ES6 features are enabled by default. Uncomment the below line to disable them.

src/React.AspNet/JsxFileSystem.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,25 +195,10 @@ public DateTimeOffset LastModified
195195
get { return _fileInfo.LastModified; }
196196
}
197197

198-
public void WriteContent(byte[] content)
199-
{
200-
File.WriteAllBytes(_fileInfo.PhysicalPath, content);
201-
}
202-
203-
public void Delete()
204-
{
205-
File.Delete(_fileInfo.PhysicalPath);
206-
}
207-
208198
public bool Exists
209199
{
210200
get { return _fileInfo.Exists; }
211201
}
212-
213-
public bool IsReadOnly
214-
{
215-
get { return File.GetAttributes(_fileInfo.PhysicalPath).HasFlag(FileAttributes.ReadOnly); }
216-
}
217202
#endif
218203
}
219204
}

0 commit comments

Comments
 (0)