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": {
|
"frameworks": {
|
||||||
"dnx451": { },
|
"dnx451": { },
|
||||||
"dnx50": { }
|
"dnxcore50": { }
|
||||||
},
|
},
|
||||||
"webroot": "wwwroot"
|
"webroot": "wwwroot"
|
||||||
}
|
}
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"dnx451": { },
|
"dnx451": { },
|
||||||
"dnx50": { }
|
"dnxcore50": { }
|
||||||
},
|
},
|
||||||
"webroot": "wwwroot"
|
"webroot": "wwwroot"
|
||||||
}
|
}
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
// 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.
|
// 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.FileProviders;
|
||||||
using Microsoft.AspNet.Mvc;
|
using Microsoft.AspNet.Mvc;
|
||||||
|
|
||||||
|
|
@ -13,7 +13,7 @@ namespace FilesWebSite
|
||||||
{
|
{
|
||||||
return new FilePathResult("/Greetings.txt", "text/plain")
|
return new FilePathResult("/Greetings.txt", "text/plain")
|
||||||
{
|
{
|
||||||
FileProvider = new EmbeddedFileProvider(GetType().Assembly, "EmbeddedResources"),
|
FileProvider = new EmbeddedFileProvider(GetType().GetTypeInfo().Assembly, "EmbeddedResources"),
|
||||||
FileDownloadName = "downloadName.txt"
|
FileDownloadName = "downloadName.txt"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue