How To WORK With MULTIPLE PROJECTS In Visual Studio

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • In this video you will learn how to work with a Visual Studio solution that has multiple projects.

ความคิดเห็น • 55

  • @bananasplashbro2536
    @bananasplashbro2536 2 ปีที่แล้ว +8

    omg ur my actual hero i had this problem when i made like 2 programs and only the 1 one would start

  • @tizaf
    @tizaf 2 ปีที่แล้ว +1

    omg, thank you so much. I be creating so many projectfiles cuz I didn't figure out how to debug other projects I create in a single file. you a lifesaver :)

  • @medicineman6384
    @medicineman6384 2 ปีที่แล้ว +4

    As others have commented. Thank you! This was surprisingly difficult to find information about. Thanks again, cheers!

  • @xbz24
    @xbz24 2 ปีที่แล้ว +3

    THANK BRO STILL KILLING IT 2022 MATE THX BRO

  • @makemoneyeasywaydz
    @makemoneyeasywaydz 8 หลายเดือนก่อน +1

    thanks man you resolved my life bruh

  • @charlesskelly1699
    @charlesskelly1699 5 หลายเดือนก่อน

    Luiz, Thanks for this video. Nice job. Clear, and Consise answer to the problem.

    • @LuizParente
      @LuizParente  5 หลายเดือนก่อน

      Thank you, Charles!

  • @AmitVerma-ic7oh
    @AmitVerma-ic7oh 2 ปีที่แล้ว +1

    This is very helpful. Thanks Luiz!

    • @LuizParente
      @LuizParente  2 ปีที่แล้ว

      Glad it was helpful!

  • @readymade_workshop
    @readymade_workshop 2 ปีที่แล้ว +2

    Thank you very much bro, you helped me so much.

  • @わたラーメン
    @わたラーメン ปีที่แล้ว +1

    bro ur a lifesaver

  • @kurtcagulang145
    @kurtcagulang145 8 หลายเดือนก่อน +1

    Thank you man really appreciated :D :D :D

    • @LuizParente
      @LuizParente  7 หลายเดือนก่อน

      Glad I could help!

  • @rickhorvath
    @rickhorvath ปีที่แล้ว +1

    How do you publish/ build this entire solution? Seems c# projects can only be built, while asp projects get published.

    • @LuizParente
      @LuizParente  ปีที่แล้ว

      The terms “build”, “publish”, “release”, and “deploy” are often used interchangeably, but there are nuances to consider depending on context. To keep it simple, let’s say C# projects can do all of these.
      Now, how a solution is published/released/deployed depends on your solution configuration:
      1. You may have a single “main” application that sits alongside other dependency projects in the same solution. In this case, building the main project also builds its dependencies. When deploying/releasing/creating an installer, the dependencies are automatically included.
      2. You may have several “whole” applications within the same solution, like different micro-services, a client-side app and a server-side app, a desktop app and a worker service that runs in the background, etc. How to release in this scenario really depends on project types, but generally speaking, the typical solution is to have build/release scripts (which likely build/release projects individually) and/or CI/CD pipelines that integrate with your source control platform and take care of the deployment details.

  • @NinjaScorpio
    @NinjaScorpio 6 หลายเดือนก่อน

    Very nice! Thank you kind sir!

    • @LuizParente
      @LuizParente  5 หลายเดือนก่อน

      Glad it was helpful!

  • @Pr3kashSingh
    @Pr3kashSingh 4 หลายเดือนก่อน

    Thanks

  • @wjrasmussen666
    @wjrasmussen666 ปีที่แล้ว

    This helped me so much. Thank you

  • @Test-iv4pm
    @Test-iv4pm 3 หลายเดือนก่อน +1

    How do we have one project call a method from another project?

    • @LuizParente
      @LuizParente  2 หลายเดือนก่อน +1

      This is more typical when the project where the method is is a Class Project. Just right-click the “Dependencies” of the project you wanna call the method from, then “Add project reference”. Select the project, and click OK. From there, you can simply reference the namespace where the method owner (class) is wherever you need to call it.

  • @fadyadel3088
    @fadyadel3088 2 ปีที่แล้ว +2

    Big Thanks to you 😊

  • @Hugohabor7799
    @Hugohabor7799 2 ปีที่แล้ว

    Could I ask a question about " How do I deploy multiple projects in same solution "
    Because we have 4 projects in a single Solution and its can call each other Project's Form after publishing.

    • @LuizParente
      @LuizParente  2 ปีที่แล้ว +1

      It depends. If each project is an actual application, they’ll have to expose means to allow for communication between each other, for example, when web APIs expose endpoints for HTTP calls. If you have class libraries, they’ll be included as DLL’s when you publish the main application.

  • @hendifirmansyah8654
    @hendifirmansyah8654 3 ปีที่แล้ว +1

    Is Possible if i using Multiple Platform Target (X64) - (X86) in one project.?
    Cause i have a problem with this, cause my FormA has X86 - and i must to develop a new Form within the references is X64..
    Thanks Man..

    • @LuizParente
      @LuizParente  3 ปีที่แล้ว

      If you're using .NET Core (or .NET 5), at publish time you can configure the target platform. The same project can be published in a variety of platforms, in that case.

  • @ppp.1334
    @ppp.1334 2 หลายเดือนก่อน +1

    dont have such an options like set project,

    • @LuizParente
      @LuizParente  หลายเดือนก่อน

      Make sure you’re opening a VS solution (.sln file), and select option “Set as startup project”.

  • @LovesJisooTurtleRabbitKim
    @LovesJisooTurtleRabbitKim 2 ปีที่แล้ว

    I am making a POS system and instead of adding windows form I accidentally used console application, does it affect the system? Or what should I do?

    • @LuizParente
      @LuizParente  2 ปีที่แล้ว +1

      It does affect the end result, as these are two very different types of application. If you need a GUI, I’d just recreate the project and bring over the code.

  • @khusanrakhmatullayev8049
    @khusanrakhmatullayev8049 ปีที่แล้ว +1

    Thank you bro)

  • @thelionwithin7848
    @thelionwithin7848 ปีที่แล้ว

    and how can i run a .c file whic is independent and without a project>?

    • @LuizParente
      @LuizParente  ปีที่แล้ว

      You can use C++ project templates to write C code with Visual Studio, with some tweaking.
      learn.microsoft.com/en-us/cpp/build/reference/visual-cpp-project-types?view=msvc-170&viewFallbackFrom=vs-2017

  • @user-ls5gf2mq8u
    @user-ls5gf2mq8u ปีที่แล้ว

    Thank you bro you are life saver❤

  • @burakhancidem7923
    @burakhancidem7923 ปีที่แล้ว +1

    Thanks bro

  • @bamsgian9759
    @bamsgian9759 3 ปีที่แล้ว

    I want to start socket client server, the client is ARM remoted raspberry pi and the server is windows. Is it possible to do this?

    • @LuizParente
      @LuizParente  3 ปีที่แล้ว +1

      I know there is a lot of people using .NET in IoT. I'm sure there is something you can look into for Raspberry Pi!

  • @aprajitagokhale5353
    @aprajitagokhale5353 2 ปีที่แล้ว +1

    Thankuuu ❤️

  • @pedroagma4417
    @pedroagma4417 2 ปีที่แล้ว

    Thank you!

  • @hriankovacsolovy7795
    @hriankovacsolovy7795 ปีที่แล้ว +1

    Thanks so fuckin much

    • @LuizParente
      @LuizParente  ปีที่แล้ว

      Thank you for watching!

  • @xbz24
    @xbz24 2 ปีที่แล้ว +1

    SUSCRIBED ASFK 2022

  • @eyout7973
    @eyout7973 3 ปีที่แล้ว +1

    tnx

  • @RossYoungblood
    @RossYoungblood 9 หลายเดือนก่อน

    Was disappointed. Need information on how to manage cases where multiple projects are dependent on each other for the build.
    If you set the Dependancies on the project, Say you have projectA,B,C in the solution and C requires B be built and B requires A be built.
    By setting the Dependancies this will allow a "Rebuild Solution" to sequence the build correctly.
    Say, for example you run a "Rebuild Solution" in this case which builds everything. Then you change JUST project "C" and want to just build those changes.
    With the build dependancies set, it is unable (for some reason) to detect that project A & B did not require building and builds A, then B, before building C.
    So there is no build time savings.
    If you remove the dependancies, Build works fine, but rebuild all will launch parallel simultaneous builds of A+B+C. I need to understand how to correct the build dependancies so that a "Build" solution or Build of just "C" does not trigger building A & B. Only on a "Rebuild Solution" do I want all projects A,B,C built.
    So I'm looking for breadcrumbs on that solution.

    • @LuizParente
      @LuizParente  9 หลายเดือนก่อน

      Thanks for your input! This video is intended for absolute beginners (in particular my students), so the scope is limited to the exercise of exploring the very basics around projects and solutions. The scenario you mention is valid, and I may cover it in a future video, but it is not something a beginner would need to worry about when just getting started with Visual Studio.