Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do you refresh references in ASP.NET applications without visual studio?

I have an ASP.NET application which relies on an external assembly which is not in the GAC. The app has a .refresh file which copies the assembly into the bin directory when the app is compiled.

When I install the app on a production server (by copying the app files into a virtual directory), the bin directory is not updated automatically by the presence of the .refresh file like I thought it would. I tried using the aspnet_compiler tool but that doesn't work since it expects the assemblies to be in the bin directory already.

How do I get .NET to update the app's bin directory without visual studio?

like image 342
Ferruccio Avatar asked Nov 15 '22 15:11

Ferruccio


1 Answers

The .refresh files are just there so that VS knows that it should keep track of the originals, and if they have changed, copy a new version to the /bin folder. They are just text files with a path to the original - the modified date is used for the comparison.

When you say:

When I install the app on a production server (by copying the app files into a virtual directory), the bin directory is not updated automatically.

What exactly do you mean? Are you not also copying the contents of the bin directory to the production server? You will need to deploy any dependant assemblies with the application.

like image 200
Zhaph - Ben Duguid Avatar answered Jan 28 '23 09:01

Zhaph - Ben Duguid