Developer forum

Forum » Development » Project placement for TFS

Project placement for TFS

David
Reply

What is best practice for seting up a project with visual studio?

I followed the guide for setting up a new Visual Studio Project (asp.net MVC) but i want to be able to change the files within the "Files"-folder from Visual Studio as well.

Do I create the vs-project inside the Files-folder and then use the whole "Files"-folder in the TFS to share with collegues?


Replies

 
Nicolai Pedersen
Reply

You have 2 options

Create a solution with 2 projects:

  • One for you custom code pointing to the rootfolder of the website, i.e. c:\projects\solutions\customer1\Application
  • One for your templates point to the files folder, i.e. c:\projects\solutions\customer1\files

With this setup, you have c:\projects\solutions\customer1\Application has home dir, c:\projects\dynamicweb\Application(9.3.6)\Admin as a virtual folder named /Admin and c:\projects\solutions\customer1\files as a virtual folder called /Files. Then you can just add a new DW version, i.e. c:\projects\dynamicweb\Application(9.3.7)\ and move the virtual /Admin location.

The other and more simple solution:

  • Have one project in the root of the website, c:\projects\solutions\customer1\. In here copy your /Files folder and copy all of Dynamicweb application (I.e. Content of Application(9.3.6)) so you would have /Admin, /Bin, /Files in the home dir and also Global.asax, web.config and maybe a few other files in the root.

First approach is suitable if you have many custom solutions in the same environment and is how we do it. Second approach is easyer if you have only a few or only update on occasion

Hope this clarifies.

BR Nicolai

 
David
Reply

Thanks for the fast answer! 

Since there will be only one Dynamic Web solution i decided to go with step 2. (First time i use DW).
Why do i need to copy the admin and bin-folders to the same dir as the Files-folder? Cant i just leave them as is, have a virtual directory pointing at the "C:\DW9Local\Solutions\myProject\files" from the "C:\DW9Local\Applications\Application(9.3.6)" ?

 
Nicolai Pedersen
Reply

Yes, you can also do that. And that would require a solution with 2 projects - one for your custom code in dlls and one for the templates

 

You must be logged in to post in the forum