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

Test projects automatically inherit app.config #8534

Merged
merged 1 commit into from
Feb 12, 2016

Conversation

davkean
Copy link
Member

@davkean davkean commented Feb 10, 2016

Changed it so that all projects inherit a "default"
app.config if one isn't explictly referenced.

Changed it so that all projects inherit a "default"
app.config if one isn't explictly referenced.
@davkean
Copy link
Member Author

davkean commented Feb 10, 2016

Note, I'll follow up deleting app.config's that match the default.

The aim of this PR is to prevent new test projects from running into the EventListener bug - we'll disable appdomain isolation by default.

@davkean
Copy link
Member Author

davkean commented Feb 10, 2016

tag @jaredpar @agocke @dotnet/roslyn-infrastructure

<Target Name="AddDefaultTestAppConfig">
<PropertyGroup>
<_AlreadyHasAppConfig Condition="'%(None.Filename)%(None.Extension)' == 'app.config'">true</_AlreadyHasAppConfig>
</PropertyGroup>
Copy link
Member Author

Choose a reason for hiding this comment

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

What do you think of this little MSbuild craziness? Nice isn't it. :)

Copy link
Member

Choose a reason for hiding this comment

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

What is that? I dont' understand the none reference.

Copy link
Member

Choose a reason for hiding this comment

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

"little MSBuild craziness"? This is 100% normal. :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

None is the item, ie `. This is basically a foreach on all of the None items, with an if check to see if its name is app.config.

@davkean
Copy link
Member Author

davkean commented Feb 10, 2016

@dotnet-bot retest prtest/win/dbg/unit32 please
// Previous failure: http://dotnet-ci.cloudapp.net/job/roslyn_prtest_win_dbg_unit32/3606/
// Retest reason: Network went down during artifacts stage

@davkean
Copy link
Member Author

davkean commented Feb 10, 2016

@dotnet-bot retest prtest/win/dbg/unit64 please
// Previous failure: http://dotnet-ci.cloudapp.net/job/roslyn_prtest_win_dbg_unit32/3606/
// Retest reason: Network went down during artifacts stage

@davkean
Copy link
Member Author

davkean commented Feb 11, 2016

tag @jasonmalinowski

<!-- Add a default test app.config, if the project doesn't already have one-->
<Target Name="AddDefaultTestAppConfig">
<PropertyGroup>
<_AlreadyHasAppConfig Condition="'%(None.Filename)%(None.Extension)' == 'app.config'">true</_AlreadyHasAppConfig>
Copy link
Member

Choose a reason for hiding this comment

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

The existing MSBuild targets also assume the item type is None?

Copy link
Member Author

Choose a reason for hiding this comment

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

None is what it looks at first, than content. I excluded content at the moment, but I'll add in a followup.

@jasonmalinowski
Copy link
Member

👍

davkean added a commit that referenced this pull request Feb 12, 2016
Test projects automatically inherit app.config
@davkean davkean merged commit c4b4155 into dotnet:master Feb 12, 2016
davkean added a commit to davkean/roslyn that referenced this pull request Feb 20, 2016
We've turned off AppDomain isolation in dotnet#8672 and dotnet#8534.
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.

4 participants