Copied to clipboard

Flag this post as spam?

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


  • marcuscreatevision 3 posts 23 karma points
    Jun 30, 2021 @ 08:57
    marcuscreatevision
    0

    How do you force the Views folder to copy with the publish?

    I can't get the Views content to copy with the rest of the project. I am using Copy Files in devops but they still refuse to copy.

    I have tried Include Folder and and Files in Project Settings but no go.

    Any ideas?

  • David Armitage 510 posts 2082 karma points
    Jul 02, 2021 @ 04:52
    David Armitage
    0

    Hi Marcus,

    It looks like with .Net Core these are compiled. I had the same issue the other day. I got it to work but still fixing a few other deployment issues.

    You can turn the feature off to compile the views into dlls.

    I cant remember the link I found but this is something on the right track. https://stackoverflow.com/questions/50778521/how-to-disable-precompiled-views-in-net-core-2-1-net-5-for-debugging

    Maybe read up about. .Net Core Precompiled Views

    Regards

    David

  • David Armitage 510 posts 2082 karma points
    Jul 02, 2021 @ 04:59
    David Armitage
    0

    Here is the link I found before. https://forums.asp.net/t/2138136.aspx

    Also here is a screen shot of my project file.

    enter image description here

    Hope this helps.

    Regards

    David

  • marcuscreatevision 3 posts 23 karma points
    Jul 02, 2021 @ 13:28
    marcuscreatevision
    0

    Thanx David. I thought I had those settings but I missed the compile thing.

    There are some times when Harakiri seems like an option in this Business. Especially when I realised after 2 hours that %Systemdrive% wasn't an acceptable parameter in Copy FIles in Devops.

    That was however I solved it. I push all pluginstuff and views into artifact folders and copy them after. That way I know I have everything I need. But your tip was obviously the best.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies