Removing XmlSerializer from TagHelpersSample.Web
This commit is contained in:
parent
f93d0d82c3
commit
36413b4d81
|
|
@ -20,11 +20,6 @@ namespace TagHelperSample.Web
|
||||||
// prevents loading controllers from other assemblies when the sample is used in functional tests.
|
// prevents loading controllers from other assemblies when the sample is used in functional tests.
|
||||||
services.AddTransient<IAssemblyProvider, TestAssemblyProvider<Startup>>();
|
services.AddTransient<IAssemblyProvider, TestAssemblyProvider<Startup>>();
|
||||||
services.AddSingleton<MoviesService>();
|
services.AddSingleton<MoviesService>();
|
||||||
|
|
||||||
services.Configure<MvcOptions>(options =>
|
|
||||||
{
|
|
||||||
options.AddXmlDataContractSerializerFormatter();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
app.UseMvc(routes =>
|
app.UseMvc(routes =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"Kestrel": "1.0.0-*",
|
"Kestrel": "1.0.0-*",
|
||||||
"Microsoft.AspNet.Mvc": "6.0.0-*",
|
"Microsoft.AspNet.Mvc": "6.0.0-*",
|
||||||
"Microsoft.AspNet.Mvc.Xml": "6.0.0-*",
|
|
||||||
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*",
|
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*",
|
||||||
"Microsoft.AspNet.Server.IIS": "1.0.0-*",
|
"Microsoft.AspNet.Server.IIS": "1.0.0-*",
|
||||||
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
|
"Microsoft.AspNet.Server.WebListener": "1.0.0-*",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue