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

Add dotnet-razor-precompile tool #5087

Closed
wants to merge 7 commits into from
Closed

Conversation

pranavkm
Copy link
Contributor

cc @rynowak \ @NTaylorMullen \ @davidfowl

No strong naming as yet.

@pranavkm pranavkm force-pushed the prkrishn/precompilation branch from 7aa3960 to 1c5840a Compare July 28, 2016 00:28
TargetFramework,
Configuration,
outputPath: outputPath,
buildBasePath: null,

Choose a reason for hiding this comment

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

The output path listed in xproj is actually used as the build-base-path. Super confusing I know. Even filed an issue but I guess it's by design? :/ aspnet/Tooling#455

@NTaylorMullen
Copy link

@NTaylorMullen NTaylorMullen self-assigned this Jul 29, 2016
},
"dependencies": {
"Microsoft.AspNetCore.Hosting": "1.1.0-*",
"Microsoft.AspNetCore.Mvc": "1.1.0-*",
Copy link
Member

Choose a reason for hiding this comment

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

I'm guessing this doesn't depend on the metapackage. It would be nice to be more specific.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, working on removing some of these dependencies.

@NTaylorMullen
Copy link

@@ -41,6 +51,25 @@ public AssemblyPart(Assembly assembly)
/// <inheritdoc />
public IEnumerable<TypeInfo> Types => Assembly.DefinedTypes;

public PrecompiledViews PrecompiledViews
Copy link
Member

Choose a reason for hiding this comment

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

I have some ideas about how to improve the factoring of this in the future, but let's leave that for another PR.

More changes per PR comments
@pranavkm pranavkm changed the title [Design]: Add dotnet-razor-precompile tool Add dotnet-razor-precompile tool Aug 15, 2016
@pranavkm
Copy link
Contributor Author

pranavkm commented Aug 15, 2016

🆙 📅 Added support for strong name signing + addressed PR comments. Moving this out of design. I'll work on cleaning up the test that was commented out. Tests for this would have to go to a separate repo. I'll work with @Eilon on this.

{
public static readonly string PrecompiledViewsAssemblySuffix = ".PrecompiledViews";
public static readonly string ViewCollectionNamespace = "AspNetCore";
public static readonly string ViewCollectionTypeName = "__PrecompiledViewCollection";
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason not to just make these two properties this a single string?

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 use these in codegen, so they have to separated.

@rynowak
Copy link
Member

rynowak commented Aug 17, 2016

:shipit: - Let's get this in and address issues in follow ups

@pranavkm
Copy link
Contributor Author

Moving the Mvc specific changes to a separate commit: #5160. I'll close this once I've addressed PR comments for the tool specific changes.

@pranavkm pranavkm closed this Aug 24, 2016
@pranavkm pranavkm deleted the prkrishn/precompilation branch September 9, 2016 16:40
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.

5 participants