Skip to content
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

Fix PMC error when no config file #1162

Merged
merged 1 commit into from
Aug 19, 2019
Merged

Conversation

bricelam
Copy link
Contributor

Fixes #1143

@@ -1205,7 +1205,11 @@ function GetConfigPath($project)
$configFileName = 'app.config'
}

return GetProperty $project.ProjectItems.Item($configFileName).Properties 'FullPath'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note, new csproj returned null if the item didn't exist, but old csproj threw. Missed this since the .NET Framework Console template includes an app.config

@@ -47,7 +47,7 @@ function Add-EFProvider
[parameter(Position = 2, Mandatory = $true)]
[string] $TypeName)

$configPath = GetConfigPath($Project)
$configPath = GetConfigPath $Project
Copy link
Contributor Author

@bricelam bricelam Aug 19, 2019

Choose a reason for hiding this comment

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

These weren't wrong, just confusing. A second argument would have to be added after the closing parenthesis F($x) $y $z

@bricelam bricelam merged commit 2cc8cee into dotnet:release/6.3 Aug 19, 2019
@bricelam bricelam deleted the default branch August 19, 2019 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable migrations - preview 8
3 participants