Copied to clipboard

Flag this post as spam?

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


  • Jan Egil Kristiansen 16 posts 36 karma points
    6 days ago
    Jan Egil Kristiansen
    0

    Change to Visual Studio ?

    I presently have a site with Umbraco 7.1.8 running on a web hotel.

    I am not too pleased with the web-based editor. Is there any way I can connect my existing Umbraco site to Visual Studio?

    (When I google for it, I find material about installing from Visual Studio, I think I am too late for that train?)

  • Alex Skrypnyk 2920 posts 8105 karma points
    6 days ago
    Alex Skrypnyk
    0

    Hi Jan

    You can open your project as web-site in Visual Studio, just download all files and open as web-site. Is it possible for you?

    Alex

  • Craig Mayers 62 posts 203 karma points
    6 days ago
    Craig Mayers
    0

    Hi Jan,

    As Alex states, you can open your existing site in Visual Studio (or Visual Studio Code).

    See the following thread, which may be of help to you also:

    https://our.umbraco.org/forum/getting-started/installing-umbraco/46680-Setting-up-existing-umbraco-site-in-visual-studio

    Craig

  • Jan Egil Kristiansen 16 posts 36 karma points
    5 days ago
    Jan Egil Kristiansen
    0

    I used File>Open>Website>FTP, that works fine.

    Still, Visual Studio does not seem to 'understand' the code. Yellow highlights seem to be Razor markup, but curly red underlining that does not make sense to me: enter image description here

  • Craig Mayers 62 posts 203 karma points
    5 days ago
    Craig Mayers
    0

    Hi Jan,

    Sometimes that can be caused missing references... MVC

    Does your code still build & run?

    Craig

  • Jan Egil Kristiansen 16 posts 36 karma points
    4 days ago
    Jan Egil Kristiansen
    0

    My code did run, but small changes caused complaints about unbalanced curly braces.

    In the code above, I have used @*Razor style*@ comments inside a code block. Elsewhere I had @Umbraco, when Umbraco would be enough.

    After I cleaned out @ from my code blocks, the code became much more robust. And I got rid of the red curly underlines.

    Maybe I deserve a compiler error for using @ inside a code block? To me it looks like Razor markup inside a code block is a very bad idea, except in the case of @: ?

  • Frans de Jong 245 posts 706 karma points
    4 days ago
    Frans de Jong
    0

    In my experience the best way to go is full visual studio or no visual studio.

    To get your site in visual studio you have to install the same version of umbraco in visual studio and than overwrite the solution with the files of your website. That way you have all your references.

  • Jan Egil Kristiansen 16 posts 36 karma points
    4 days ago
    Jan Egil Kristiansen
    0

    Yes, probably. Should be an enlightening experience.

    Where I really want to go, is probably Umbraco as a Service (a.k.a. Umbraco Cloud?) We'll see.

  • Simon Justesen 34 posts 90 karma points
    4 days ago
    Simon Justesen
    0

    I agree with Frans

    Using VS' integrated FTP feature is perfectly fine if you're only going to alter a few files now and then - and if you have a reliable FTP connection (some servers have a set timeout).

    But in terms of productivity, I find that method to be really slow compared to working locally, since it takes a few seconds to upload the file on each save, and if VS har to reconnect to the FTP-server, it's even slower.

  • Craig Mayers 62 posts 203 karma points
    4 days ago
    Craig Mayers
    0

    My preference is full Visual Studio and working locally then just publishing as an when needed (via FTP, WebDeploy or CI process).

Please Sign in or register to post replies

Write your reply to:

Draft