Fix tests to work on CoreClr (this does not fix the Xml tests failures)
This commit is contained in:
parent
4b5dd199ca
commit
ab31be20ed
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnx50": { }
|
||||
"dnxcore50": { }
|
||||
},
|
||||
"webroot": "wwwroot"
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnx50": { }
|
||||
"dnxcore50": { }
|
||||
},
|
||||
"webroot": "wwwroot"
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Microsoft.AspNet.FileProviders;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ namespace FilesWebSite
|
|||
{
|
||||
return new FilePathResult("/Greetings.txt", "text/plain")
|
||||
{
|
||||
FileProvider = new EmbeddedFileProvider(GetType().Assembly, "EmbeddedResources"),
|
||||
FileProvider = new EmbeddedFileProvider(GetType().GetTypeInfo().Assembly, "EmbeddedResources"),
|
||||
FileDownloadName = "downloadName.txt"
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue