Skip to content

Add RoslynCodeTaskFactory and DownloadFile samples#3313

Closed
jeffkl wants to merge 3 commits intodotnet:masterfrom
jeffkl:samples
Closed

Add RoslynCodeTaskFactory and DownloadFile samples#3313
jeffkl wants to merge 3 commits intodotnet:masterfrom
jeffkl:samples

Conversation

@jeffkl
Copy link
Copy Markdown
Contributor

@jeffkl jeffkl commented May 15, 2018

DownloadFile task was added by #3297

RoslynCodeTaskFactory was added by #3175

Delete empty src/Samples/Directory.Build.targets

Copy link
Copy Markdown
Member

@rainersigwald rainersigwald left a comment

Choose a reason for hiding this comment

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

I think I'd rather see all of this in the Docs repo rather than here. . . Do you think it needs to be here?

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd say to not specify the xml header or the namespace in samples, since they're no longer needed.

<Output TaskParameter="DownloadedFile" ItemName="Content" />
</DownloadFile>

<!-- Include the f-->
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the f?

<!-- Download a file -->
<DownloadFile
SourceUrl="https://raw.githubusercontent.com/Microsoft/msbuild/master/LICENSE"
DestinationFolder="$(MSBuildProjectDirectory)">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you specify a path or something so this can be named DownloadedFile instead of LICENSE? I found the .gitignore confusing.

@jeffkl
Copy link
Copy Markdown
Contributor Author

jeffkl commented May 15, 2018

I think I'd rather see all of this in the Docs repo rather than here. . . Do you think it needs to be here?

I wanted more test coverage to ensure that we don't break at least RoslynCodeTaskFactory.

@jeffkl jeffkl closed this May 21, 2018
@ghost
Copy link
Copy Markdown

ghost commented Jun 1, 2018

I wanted more test coverage

👍 also it is bit strange when we search and find zero usages of built-in task in the repo.

@jeffkl jeffkl deleted the samples branch October 9, 2019 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants