Copied to clipboard

Flag this post as spam?

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


  • Tim C 161 posts 528 karma points
    May 27, 2016 @ 09:48
    Tim C
    0

    Visual Studio create project from existing code

    I am using Umbraco from a hosting supplier, but want to try to write a web service and therefore build a dll.

    So I downloaded all the folders to my local machine and fired up Visual Studio 2015 Community Edition

    I tried to create a project (as the hosted system doesn't include a project or solution file) from existing code.

    From the menu, I chose

    File

    Project from existing code

    choose C#

    and selected my folder

    It then asked for name and output type : however, the only output types available are

    • Console Application

    • Windows Application

    • Class Library

    There is no option for 'Web Site'

    Has anyone come across this before? Do I need to change some settings? I assume this must be possible!

  • Bijesh Tank 192 posts 420 karma points
    May 27, 2016 @ 10:52
    Bijesh Tank
    101

    Hi Tim,

    I believe you have to open it as a website first in your case.

    File -> Open -> Web Site

    Then you can save a solution: File -> Save MySite.sln

    Then you can create a new project in that solution.

    B.

  • Tim C 161 posts 528 karma points
    May 27, 2016 @ 13:29
    Tim C
    0

    It seems this version won't save solutions, only projects!

  • Tim C 161 posts 528 karma points
    May 27, 2016 @ 13:46
    Tim C
    0

    Sorry, it does, but implcitly. This has worked!

  • Bijesh Tank 192 posts 420 karma points
    May 27, 2016 @ 14:13
    Bijesh Tank
    0

    I was in the middle of a reply back to you till I saw your update!

    Glad it worked :)

Please Sign in or register to post replies

Write your reply to:

Draft