-
Notifications
You must be signed in to change notification settings - Fork 88
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
Restore as a standalone operation and remove from watch #634
Conversation
Content/default/Build.fs
Outdated
@@ -45,11 +45,12 @@ Target.create "Azure" (fun _ -> | |||
deployment |> Deploy.execute "SAFE-App" Deploy.NoParameters |> ignore) | |||
|
|||
Target.create "Run" (fun _ -> | |||
run dotnet [ "restore"; "SAFE.App.sln" ] "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tested this when creating a new project from the template? I assume that this will break in most cases as the sln won't be called SAFE.App.sln
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My belief is that the templating will replace this but I will double check and report back!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does do the replace but for the test path I used it did the replace in such a way that the sln path's hyphens were transformed to underscores so it wouldn't work. Will dig into the templating a bit to see if I can figure out how we can avoid this.
a756f92
to
3cc7024
Compare
@Larocceau @mattgallagher92 I've just looked at this - it is not what we discussed in the review.
I'm going to reopen #626 as this does not appear to be a 100% fix (although I'm very happy to eat humble pie and be corrected!). |
@isaacabraham my bad, sorry about that! 1 & 2: Ok, I assumed doing it this way would be a bit faster. Just for my knowledge, what is the benefit of doing a full build here? |
Building the Shared project is essentially going to do the same as building the solution anyway as the shared project is referenced at the very bottom of the build chain / dependency tree, and build implicit does a restore (unless, of course, you use the --no-restore argument!). |
This implements @isaacabraham's suggestion in #626