I'm trying to build from dev environment to stable environment.
If I try to build without sendind the uSync folder that contains all my doctypes, build works just fine. But if I commit the uSync folder with all my 300 doctypes/datatypes etc, the build ends up with :
[Step 4/4] Process exited with code 1
[Step 4/4] Step Build and Web Deploy (MSBuild) failed
There's is no other details to the error build so, I really don't know what to do..
If anyone ever had the same issue, i'd be glad to hear from it :)
there isn't anything in the uSync folder other than the uSync XML files (with .config extension so they don't get served by the server) so they shouldn't on their own cause a build error.
but depending on how you are deploying you might not have to include the uSync folder in the solution.
The uSync NuGet package includes a .targets file (which is added to
the solution) so that the uSync folder gets copied on deployment -
irrespective of it being in the solution or not, this is how Umbraco
also deploys the Umbraco and Umbraco_Client folders.
If you have installed uSync via NuGet you don't have to do anything to configure this it is included in the project, and when your build server is creating the deployment package it should include the uSync folder as part of that.
If you do have to include them in the project - check the build actions for the files - this may help in stopping the files being read by the compiler.
build error using TC & uSync
Hi guys,
I'm trying to build from dev environment to stable environment. If I try to build without sendind the uSync folder that contains all my doctypes, build works just fine. But if I commit the uSync folder with all my 300 doctypes/datatypes etc, the build ends up with :
There's is no other details to the error build so, I really don't know what to do.. If anyone ever had the same issue, i'd be glad to hear from it :)
Hi,
there isn't anything in the uSync folder other than the uSync XML files (with .config extension so they don't get served by the server) so they shouldn't on their own cause a build error.
but depending on how you are deploying you might not have to include the uSync folder in the solution.
If you have installed uSync via NuGet you don't have to do anything to configure this it is included in the project, and when your build server is creating the deployment package it should include the uSync folder as part of that.
If you do have to include them in the project - check the build actions for the files - this may help in stopping the files being read by the compiler.
https://docs.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019
Well, that was it ! The folder was included in the solution and it caused the error... Thanks a lot for your time, @Kevin !
But thing is, now when I build on staging server, the uSync folder is not copied ...
is working on a reply...