How do you update links in ASP.NET applications without visual studio?

I have an ASP.NET application that relies on an external assembly that is not in the GAC. The application has a .refresh file that copies the assembly to the bin directory when compiling the application.

When I install the application on the production server (copying the application files to the virtual directory), the bin directory is not automatically updated due to the presence of the .refresh file, as I thought. I tried using the aspnet_compiler tool, but this does not work as it expects the assemblies to already be in the bin directory.

How do I get .NET to update the bin directory of an application without visual studio?

+5
source share
3

.refresh , VS , , , /bin. - .

:

( ), bin .

? bin ? .

+1

asp.net :

C:\WINDOWS\Microsoft.NET\Framework\
FRAMEWORK_VERSION\Temporary ASP.NET Files\YOUR_APP_NAME
0

.refresh .

script ( , , cmd, NAnt, Rake, psake...), :

  • asp.net
  • asp.net.

Or you can edit the .csproj file and add something like:

<ProjectExtensions>
  <PropertyGroup>
    <PreBuildEvent>copy c:\path\to\dll\files $(ProjectDir)$(OutDir)</PreBuildEvent>
  </PropertyGroup>
</ProjectExtensions>

This will add a preliminary action that will copy your dll files to the output directory of your asp.net application. You will need to create it using MsBuild

0
source