Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jul 30, 2021 @ 10:21
    Jeroen Vantroyen
    0

    Installing uSync 9 rc via nuget

    Hi,

    I'm new to setting up .Net Core projects and am unsure what I'm missing when trying to install uSync.

    • I installed package usync 9.0.0-rc001
    • I build my project and the App_Plugins folder appears
    • I deploy my project, but none of the App_plugins content is copied (all files are set to "Do not copy"
    • do we need to manually add .AdduSync() to Startup.cs?

    Manual steps I tried to resolve (to no effect):

    • copy the App_Plugins/usync folder manually
    • added .AdduSync() to Startup.cs (no parameters)

    Would this be enough to add uSync in the BackOffice in it's usual place? I'm probably missing a step?

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Jul 30, 2021 @ 10:35
    Kevin Jump
    0

    Hi

    I think this is a Umbraco deploy thing (not a uSync thing e.g .AdduSync() doesn't effect the copying of the files.).

    The files are copied as part of the dotnet publish - i think you need to tell .net to copy the app_plugins folder to your output folder

    <ItemGroup>
        <None Update="App_Plugins\**\*">
           <CopyToOutputDirectory>Always</CopyToOutputDirectory>
        </None>
    </ItemGroup>
    

    but i am not 100% sure.

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jul 30, 2021 @ 11:11
    Jeroen Vantroyen
    0

    That does indeed publish all files, thanks. But it has the same effect as me copying them manually.

    What else is needed to make the uSync dashboard appear in the BackOffice?

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Jul 30, 2021 @ 11:15
    Kevin Jump
    0

    Hi,

    So can you see the uSync entry in the settings tree ?

    enter image description here

    if you do - do you get anything (errors, etc) if you click on the uSync entry ?

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jul 30, 2021 @ 11:32
    Jeroen Vantroyen
    0

    There's no extra section appearing, which made me start to wonder if something's missing.

    Used to be auto-detected by Umbraco in the past. The 3 dll's copied to the /bin folder are:

    • uSync.BackOffice.dll
    • uSync.Community.Contrib.dll
    • uSync.Core.dll

    Anything missing? It does say "uSync: Startup Complete" in the logs.

    enter image description here

  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jul 30, 2021 @ 12:52
    Jeroen Vantroyen
    1

    Huh,

    I redid everything with what I know now and the second time around it worked. Not really sure what changed.

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Jul 30, 2021 @ 13:02
    Kevin Jump
    0

    Woot - lets say caching. 😊

  • Kevin Jump 2341 posts 14868 karma points MVP 8x c-trib
    Jul 30, 2021 @ 12:56
    Kevin Jump
    0

    Hi,

    How are you publishing ?

    i've just done a v-quick test- publishing to azure from visual studio. and first time (because i forgot the config above) it did indeed not have the App_Plugins - but once i added the config it copeid that over and i can see the uSync section in the backoffice.

    I wonder if there is caching or anything else going on ?

    the folder structure on my azure site for reference looks a little like this:

     Directory of D:\home\site\wwwroot
    
    [.]
    [..]
    [amd64]
    [App_Plugins]
    [cs]
    [de]
    [es]
    [fr]
    [it]
    [ja]
    [ko]
    [pl]
    [pt-BR]
    [refs]
    [ru]
    [runtimes]
    [Smidge]
    [tr]
    [umbraco]
    [uSync]
    [Views]
    [wwwroot]
    [x86]
    [zh-Hans]
    [zh-Hant]
    appsettings.Development.json
    appsettings.json
    BouncyCastle.Crypto.dll
    CSharpTest.Net.Collections.dll
    Dazinator.Extensions.FileProviders.dll
    DotNet.Glob.dll
    Examine.Core.dll
    Examine.dll
    Examine.Lucene.dll
    hostingstart.html
    HtmlAgilityPack.dll
    J2N.dll
    K4os.Compression.LZ4.dll
    Lucene.Net.Analysis.Common.dll
    Lucene.Net.dll
    Lucene.Net.Facet.dll
    Lucene.Net.Grouping.dll
    Lucene.Net.Join.dll
    Lucene.Net.Queries.dll
    Lucene.Net.QueryParser.dll
    Lucene.Net.Replicator.dll
    Lucene.Net.Sandbox.dll
    MailKit.dll
    Markdown.dll
    MessagePack.Annotations.dll
    MessagePack.dll
    Microsoft.AspNetCore.Cryptography.Internal.dll
    Microsoft.AspNetCore.Cryptography.KeyDerivation.dll
    Microsoft.AspNetCore.DataProtection.Abstractions.dll
    Microsoft.AspNetCore.DataProtection.dll
    Microsoft.AspNetCore.JsonPatch.dll
    Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll
    Microsoft.AspNetCore.Mvc.Razor.Extensions.dll
    Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.dll
    Microsoft.AspNetCore.Razor.Language.dll
    Microsoft.Bcl.AsyncInterfaces.dll
    Microsoft.CodeAnalysis.CSharp.dll
    Microsoft.CodeAnalysis.dll
    Microsoft.CodeAnalysis.Razor.dll
    Microsoft.Extensions.DependencyInjection.dll
    Microsoft.Extensions.DependencyModel.dll
    Microsoft.Extensions.FileProviders.Embedded.dll
    Microsoft.Extensions.Identity.Core.dll
    Microsoft.Extensions.Identity.Stores.dll
    Microsoft.IO.RecyclableMemoryStream.dll
    MimeKit.dll
    MiniProfiler.AspNetCore.dll
    MiniProfiler.AspNetCore.Mvc.dll
    MiniProfiler.Shared.dll
    NCrontab.dll
    Newtonsoft.Json.Bson.dll
    Newtonsoft.Json.dll
    NPoco.dll
    NUglify.dll
    Our.Umbraco.LinkedPages.dll
    Serilog.AspNetCore.dll
    Serilog.dll
    Serilog.Enrichers.Process.dll
    Serilog.Enrichers.Thread.dll
    Serilog.Extensions.Hosting.dll
    Serilog.Extensions.Logging.dll
    Serilog.Filters.Expressions.dll
    Serilog.Formatting.Compact.dll
    Serilog.Formatting.Compact.Reader.dll
    Serilog.Settings.AppSettings.dll
    Serilog.Settings.Configuration.dll
    Serilog.Sinks.Async.dll
    Serilog.Sinks.Console.dll
    Serilog.Sinks.Debug.dll
    Serilog.Sinks.File.dll
    Serilog.Sinks.Map.dll
    SixLabors.ImageSharp.dll
    SixLabors.ImageSharp.Web.dll
    Smidge.Core.dll
    Smidge.dll
    Smidge.InMemory.dll
    Smidge.Nuglify.dll
    Superpower.dll
    System.Configuration.ConfigurationManager.dll
    System.Data.SqlClient.dll
    System.Data.SqlServerCe.dll
    System.Runtime.Caching.dll
    System.Security.Cryptography.ProtectedData.dll
    System.Text.Encodings.Web.dll
    System.Threading.AccessControl.dll
    tooorangey.uEditorNotes.dll
    Umbraco.Core.dll
    Umbraco.Examine.Lucene.dll
    Umbraco.Infrastructure.dll
    Umbraco.Persistence.SqlCe.dll
    Umbraco.PublishedCache.NuCache.dll
    Umbraco.Web.BackOffice.dll
    Umbraco.Web.Common.dll
    Umbraco.Web.Website.dll
    UmbracoRC.deps.json
    UmbracoRC.dll
    UmbracoRC.exe
    UmbracoRC.pdb
    UmbracoRC.runtimeconfig.json
    uSync.BackOffice.dll
    uSync.Community.Contrib.dll
    uSync.Core.dll
    web.config
                 104 File(s)     34,908,207 bytes
                  25 Dir(s)     756,744,192 bytes free
    
  • Jeroen Vantroyen 54 posts 394 karma points c-trib
    Jul 30, 2021 @ 13:50
    Jeroen Vantroyen
    0

    Thanks for the assist!

Please Sign in or register to post replies

Write your reply to:

Draft