Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 47c2e49

Browse files
author
N. Taylor Mullen
committed
Remove MVC dependency from test applications.
- This ensures no circular dependency is created between RazorTooling and MVC. - One side effect of this change is that you can no longer run the test application. Can just see its design time functionality.
1 parent e7409e1 commit 47c2e49

9 files changed

Lines changed: 7 additions & 88 deletions

File tree

testapps/RazorToolingTestApp/Controllers/HomeController.cs

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using System.IO;
5-
using Microsoft.AspNetCore.Hosting;
6-
74
namespace RazorToolingTestApp
85
{
96
public class Program
107
{
118
public static void Main(string[] args)
129
{
13-
var host = new WebHostBuilder()
14-
.UseKestrel()
15-
.UseContentRoot(Directory.GetCurrentDirectory())
16-
.UseIISIntegration()
17-
.UseStartup<Startup>()
18-
.Build();
19-
20-
host.Run();
10+
// This project is not runnable.
2111
}
2212
}
2313
}

testapps/RazorToolingTestApp/Startup.cs

Lines changed: 0 additions & 30 deletions
This file was deleted.

testapps/RazorToolingTestApp/Views/Home/Index.cshtml

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@addTagHelper *, RazorToolingTestApp.Library
2+
@addTagHelper *, RazorToolingTestApp.LibraryPackage
3+
4+
<p enum-property="FirstValue">Hello world</p>
5+
<informational />

testapps/RazorToolingTestApp/Views/Shared/_Layout.cshtml

Lines changed: 0 additions & 13 deletions
This file was deleted.

testapps/RazorToolingTestApp/Views/_ViewImports.cshtml

Lines changed: 0 additions & 3 deletions
This file was deleted.

testapps/RazorToolingTestApp/Views/_ViewStart.cshtml

Lines changed: 0 additions & 3 deletions
This file was deleted.

testapps/RazorToolingTestApp/project.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
{
22
"dependencies": {
3-
"Microsoft.AspNetCore.Diagnostics": "1.1.0-*",
4-
"Microsoft.AspNetCore.Mvc": "1.1.0-*",
53
"Microsoft.AspNetCore.Razor.Design": {
64
"type": "build",
75
"version": "1.0.0-*",
86
"target": "package"
97
},
10-
"Microsoft.AspNetCore.Server.IISIntegration": "1.1.0-*",
11-
"Microsoft.AspNetCore.Server.Kestrel": "1.1.0-*",
12-
"Microsoft.Extensions.Logging.Console": "1.1.0-*",
138
"RazorToolingTestApp.Library": "1.0.0",
149
"RazorToolingTestApp.LibraryPackage": {
1510
"version": "1.0.0",
16-
"target": "package" /* Remove this line and the above comma to have this project restore outside of tests */
11+
"target": "package"
1712
}
1813
},
1914

2015
"tools": {
21-
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-*",
2216
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-*"
2317
},
2418

0 commit comments

Comments
 (0)