assemblies

Adding dll reference

半城伤御伤魂 提交于 2019-12-22 14:52:21
问题 I've got a strange problem adding a dll reference. I've got a WPF application and am trying to use the WPF MDI library: http://wpfmdi.codeplex.com/ As stated in the instructions (which are very vague), I right-clicked on references in VS2012, clicked on Add reference.. , clicked on Browse.. and added my dll which I downloaded. Next, I added the following line in the XAML of my window: xmlns:mdi="clr-namespace:WPF.MDI;assembly=WPF.MDI" as stated in the instructions. However, when trying to add

Are JPG, DOC, PDF, etc, files also compiled into an assembly?

喜夏-厌秋 提交于 2019-12-22 11:29:29
问题 Q1: Does aspnet_compiler.exe compile into assembly(ies) all files contained inside the website directory, even JPG, DOC, and PDF types? If you add images to the list of files (thus add them to the project file) in your web project, will these images also get compiled by VS into assembly? Q2: When aspnet_compiler.exe compiles application into assembly(ies), it also compiles resources and web references. I’m not sure I understand what is meant by “Web references being compiled”. What kind of

Speed Increase by Using the Global Assembly Cache

蓝咒 提交于 2019-12-22 10:26:39
问题 If I had a 1000 asp.net websites each with 30 DLL's in their /bin folders. Therefore 30,000 DLL's. Would the websites / web server / machine run faster if I registered one set of the DLL's into the Global Assembly Cache and each site used the DLL's in the GAC? e.g. would the websites collectively use less memory? 回答1: Even though assemblies are in the GAC they will still be loaded from there into memory separately to provide isolation. In other words, just because assemblies are in the GAC

Web App Compiling Error - ASP.NET Reference

安稳与你 提交于 2019-12-22 09:50:05
问题 My current web app works fine locally and on live, what i am currently playing around with is compiling my Web App with the Visual Studio Option "Add Web Deployment Project" so all the code behind is compiled into DLL's. There's is one particular build error i can not get rid off Error 50 The type or namespace name 'usercontrols_calendarcell_ascx' does not exist in the namespace 'ASP' (are you missing an assembly reference?) c:\page.ascx.cs 30 1 test_deploy And the actual line of code is as

Is it possible to use Assembly.ReflectionOnlyLoad together with publisher policies / assembly versioning?

你。 提交于 2019-12-22 08:59:19
问题 My target: We are allowing to integrate our product with third party components (libraries) which are not installed as part of our product because of licensing. At the moment we want to load features related to third party components only if these components are installed on the client's machine. Current solution: I'm using Assembly.ReflectionOnlyLoad with providing full names of third party assemblies to validate installation of third party components before the application loads related

Using _bin_deployableAssemblies with Visual Studio 2012

允我心安 提交于 2019-12-22 08:44:23
问题 With Visual Studio 2010 I used the _bin_deployableAssemblies folder to include third party assemblies which should be included in the bin folder on build and web deploy. It's about those third party assemblies which are needed for the website, but you don't want to reference them. This worked awesome... Now with Visual Studio 2012 it stopped working... Well, a part of it stopped working. When I build, the contents of the _bin_deployableAssemblies folder are copied to the bin folder. But when

When does .net check for assembly dependencies?

穿精又带淫゛_ 提交于 2019-12-22 08:35:42
问题 While pursuing a spearate problem I've come to a very peculiar situation. A demo code would be: public class Global : HttpApplication { protected void Application_Start(object sender, EventArgs e) { Log("In Application_Start"); SomeClass.SomeProp = ConfigurationManager.AppSettings["PropValue"]; } protected void Application_BeginRequest(object sender, EventArgs e) { Log("In Application_BeginRequest"); try { this.Application_Start(null, null); } catch ( Exception ex ) { Log(ex.ToString()); }

Entity Container and Model generation in different assemblies

时光毁灭记忆、已成空白 提交于 2019-12-22 08:19:47
问题 I'm doing some refactoring and am trying to reuse my genertated entity models. My application has a few assemblies, one being my outward facing public types (API) and one containing implementations of providers (such as the log). I'd like to split the generation of the entities and models so that the entities will be in the API assembly and the container will be in the implementation assembly. Is this possible? Is possible. This is how I did it. Assembly A Database.EDMX Models.TT Models.cs

C# Get path of class library

佐手、 提交于 2019-12-22 07:01:04
问题 I have a class library that uses some xml files found in its own directory. When referencing this library from another project, how do I ensure the library is working from it's own directory? I tried Assembly.GetExecutingAssembly().Location but that still returns the path of the startup project. 回答1: I know this is an old post but in the event someone else stumbles on it from a search, the easiest way I've found to do this is: Public Class Foo Public Shared Function GetMyPath() As String

.csproj's platform specific ItemGroup works for assembly references but not content includes?

非 Y 不嫁゛ 提交于 2019-12-22 01:27:44
问题 Since we have three assemblies that come in explicit x86 and x64 versions, I've edited the corresponding .csproj file(s) to use, for example, a block like this: <ItemGroup Condition=" '$(Platform)' == 'x86' "> <Reference Include="CaliberRMSDK"> <HintPath>..\Libraries\CaliberRMSDK_IKVM\32bit\CaliberRMSDK.dll</HintPath> </Reference> <Content Include="..\Libraries\CaliberRMSDK_IKVM\32bit\ikvm-native.dll"> <Link>ikvm-native.dll</Link> <CopyToOutputDirectory>Always</CopyToOutputDirectory> <