简体   繁体   中英

Change VS build folder to the same folder (windows form and console)

I have a product composed by some different files:

  1. Some windows form applications (windows form + .net5).
  2. Some console applications (.net5)
  3. Some class libraries shared by them (.net5)
  4. Some json data used by them.

I changed all of the build output folders to "W:\\Cci", but it turned out that they are not in the exactly place:

  1. All windows form applications will be put in: "W:\\Cci\\net5.0-windows"
  2. All console applications will be put in : "W:\\Cci\\net5.0"

Which means they cannot share json data files.

I know that there is a "Publish" function might do the job, but I want to debug them in the same folder as well.

Anyone can help? thanks.

This works for me:

  1. In the Solution Explorer.
  2. Expend your-solution-name(the project)/Dependencies/Projects.
  3. Right click "Projects" and select "Add Project Reference".
  4. Select the dlls.
  5. Build the solution.

After that, the .net dlls appear both in W:\\Cci\\net5.0 and W:\\Cci\\net5.0-windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM