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

Conversation

@pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Jul 5, 2016

No description provided.

@dnfclas
Copy link

dnfclas commented Jul 5, 2016

Hi @pranavkm, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.

TTYL, DNFBOT;

@pranavkm
Copy link
Contributor Author

pranavkm commented Jul 5, 2016

options.FileProviders.Add(new PhysicalFileProvider(customApplicationBasePath ?? applicationEnvironment.ApplicationBasePath));
options.FileProviders.Add(fileProvider);
});
var diagnosticSource = new DiagnosticListener("Microsoft.AspNetCore");
Copy link
Contributor Author

@pranavkm pranavkm Jul 5, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidfowl - this is so crummy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you prefer hosting-provided services be handled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Razor depends on it and we sort of expect it to work in non-hosted scenarios, we should add it as part of AddRazor \ AddMvc. It's a no-op operation if it already exists via Hosting.


namespace EntropyTests
{
public static class RazorEmbeddedResource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any changes from the TagHelperSampleTest source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method was made public and it's referencing this type to locate the project, but nothing apart from that.

@dougbu
Copy link
Contributor

dougbu commented Jul 5, 2016

LGTM but I defer to @ajaybhargavb on the squirrel.

@pranavkm
Copy link
Contributor Author

pranavkm commented Jul 6, 2016

@ajaybhargavb
Copy link
Contributor

:shipit:

@ajaybhargavb
Copy link
Contributor

Does it make sense to add one more test with customApplicationBasePath=null?

@pranavkm
Copy link
Contributor Author

pranavkm commented Jul 6, 2016

It's kinda tricky because you have to in some way modify the ApplicationBasePath to point to the test app when it's pointing at the test project. The end results are going to look pretty similar to passing in a path.

@ajaybhargavb
Copy link
Contributor

Got it

@pranavkm pranavkm merged commit 02c2b8d into dev Jul 11, 2016
@pranavkm pranavkm deleted the prkrishn/fix-render branch July 11, 2016 18:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

5 participants