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

Force Tool Restore and Formatting. Build for Debug and Release Configuration #277

Merged
merged 8 commits into from
Sep 17, 2023

Conversation

TheAngryByrd
Copy link
Owner

Proposed Changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Types of changes

What types of changes does your code introduce to MiniScaffold?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • Build and tests pass locally
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@TheAngryByrd TheAngryByrd force-pushed the more-refinements branch 5 times, most recently from 1ecdfa9 to 572b213 Compare September 17, 2023 21:56
@TheAngryByrd TheAngryByrd changed the title More refinements Force Tool Restore and Formatting. Build for Debug and Release Configuration Sep 17, 2023
@TheAngryByrd TheAngryByrd merged commit 39a832d into master Sep 17, 2023
6 checks passed
@TheAngryByrd TheAngryByrd deleted the more-refinements branch September 17, 2023 23:03
TheAngryByrd added a commit that referenced this pull request Sep 17, 2023
## [0.35.0] - 2023-09-17

### Changed
- [Force Tool Restore and Formatting. Build for Debug and Release Configuration](#277) from @TheAngryByrd
Comment on lines +15 to +19
<Target Name="ToolRestore" BeforeTargets="Restore;CollectPackageReferences;PaketRestore" Inputs="$(_DotnetToolManifestFile)" Outputs="$(_DotnetToolRestoreOutputFile)">
<Exec Command="dotnet tool restore" WorkingDirectory="$(MSBuildThisFileDirectory)" StandardOutputImportance="High" StandardErrorImportance="High" />
<MakeDir Directories="$(_BuildProjBaseIntermediateOutputPath)"/>
<Touch Files="$(_DotnetToolRestoreOutputFile)" AlwaysCreate="True" ForceTouch="True" />
</Target>
Copy link
Owner Author

@TheAngryByrd TheAngryByrd Sep 17, 2023

Choose a reason for hiding this comment

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

@Tarmil, I used the Directory.Build.targets file from FSharp.SystemTextJson but I still had to make some changes to make it work from a complete clean clone.

Specifically the MakeDir to ensure the path exists and the BeforeTargets=PaketRestore.

Tagging you in case you want to use this.

Copy link

Choose a reason for hiding this comment

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

Good catch indeed!

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