Skip to content

Ensure $(Configuration) is evaluated prior to using it #18113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Jan 3, 2020

Fixes #12779

@pranavkm pranavkm requested a review from javiercn January 3, 2020 20:42
@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label Jan 3, 2020
@@ -4,12 +4,6 @@
<PropertyGroup>
<DefaultWebContentItemExcludes>$(DefaultWebContentItemExcludes);wwwroot\**</DefaultWebContentItemExcludes>

<!-- By default, enable auto rebuilds for debug builds. Note that the server will not enable it in production environments regardless. -->
<BlazorRebuildOnFileChange Condition="'$(Configuration)' == 'Debug' AND '$(BlazorRebuildOnFileChange)' == ''">true</BlazorRebuildOnFileChange>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is unused.

@@ -13,6 +13,9 @@

<!-- The Blazor build code can only find your referenced assemblies if they are in the output directory -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

<!-- By default, enable debugging for debug builds. -->
<BlazorEnableDebugging Condition="'$(Configuration)' == 'Debug' AND '$(BlazorEnableDebugging)' == ''">true</BlazorEnableDebugging>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prop files from NuGet packages are imported prior to Configuration being initialized. This moves the assignment to a later point.

@pranavkm pranavkm added this to the blazor-wasm-3.2-preview1 milestone Jan 3, 2020
@pranavkm pranavkm changed the base branch from master to blazor-wasm January 3, 2020 22:36
@pranavkm pranavkm merged commit 66ecdab into blazor-wasm Jan 6, 2020
@pranavkm pranavkm deleted the prkrishn/blazor-enable-debug branch January 6, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants