Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add compileBuiltIn property to project.json #1289

Merged
merged 1 commit into from
Feb 27, 2015
Merged

Add compileBuiltIn property to project.json #1289

merged 1 commit into from
Feb 27, 2015

Conversation

troydai
Copy link
Contributor

@troydai troydai commented Feb 26, 2015

@ghost ghost added the cla-not-required label Feb 26, 2015
@troydai
Copy link
Contributor Author

troydai commented Feb 26, 2015

@glennc @victorhurdugaci @lodejard @ChengTian
Please help to take a look.

string projectFilePath,
string name,
string legacyName,
IEnumerable<string> fallbackIncludeing = null,
Copy link
Contributor

Choose a reason for hiding this comment

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

typo in fallbackIncludeing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will fix. Thanks.

@troydai
Copy link
Contributor Author

troydai commented Feb 26, 2015

@davidfowl

@davidfowl
Copy link
Member

This shouldn't break people that respecify the pattern today right?

@troydai
Copy link
Contributor Author

troydai commented Feb 27, 2015

Respecify pattern won't break the application. Tested all projects in universe. And the internally the duplicate the patterns will be removed.

But there is possibility that it will breaks in one situation that is when user explicitly overwrite "code" to not include all **\*.cs. Unless user overwrite the compileBuiltIn. We can't avoid breaking them.

But the chance is low.

@troydai
Copy link
Contributor Author

troydai commented Feb 27, 2015

@davidfowl sign off?

Ping

@@ -88,6 +89,20 @@ public void FilesPatternsAreSet()
Assert.Equal(new string[] { "buggy/*.*", "bin/**", "obj/**", "**/*.kproj", "no_pack/*.*" }, target.ContentPatternsGroup.ExcludePatterns);
}

[Fact]
public void RewriteCompileBuiltIn()
Copy link
Member

Choose a reason for hiding this comment

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

Add a test that does:

{
  "compile": ["**/*.cs"]
}

@troydai
Copy link
Contributor Author

troydai commented Feb 27, 2015

Two tests added.

@troydai
Copy link
Contributor Author

troydai commented Feb 27, 2015

Ping

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants