Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Update Razor SDK packing logic to not include Pack at properties layer. #2420

Merged
merged 3 commits into from
Jun 29, 2018

Conversation

NTaylorMullen
Copy link
Contributor

  • We now rely on the Razor source inputs layer to add packing to cshtml content items.

#2378
#2384

@mkArtakMSFT This is ready to go, let me know when i'm good to merge.

@@ -15,6 +15,46 @@ public PackIntegrationTest(BuildServerTestFixture buildServer)
{
}

[Fact]
[InitializeTestProject("ClassLibrary")]
public async Task Pack__NoBuild_Works_IncludesRazorAssembly()
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: two underscores after Pack

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also add a test that verifies we do add the files in no-build scenarios if the flag is set?

Assert.NuspecContains(
result,
Path.Combine("obj", Configuration, "ClassLibrary.1.0.0.nuspec"),
@"<files include=""any/netstandard2.0/Views/Shared/_Layout.cshtml"" buildAction=""Content"" />");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm assuming this will fail on travis but we'll see.

@NTaylorMullen
Copy link
Contributor Author

🆙 📅

@NTaylorMullen NTaylorMullen force-pushed the nimullen/2384 branch 2 times, most recently from 0ec2172 to 5139c82 Compare June 27, 2018 23:43
@pranavkm
Copy link
Contributor

@NTaylorMullen this should be good to go in now.

@NTaylorMullen NTaylorMullen merged commit 1c9208b into release/2.1 Jun 29, 2018
@NTaylorMullen NTaylorMullen deleted the nimullen/2384 branch June 29, 2018 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants