IDE :: Visual Studio 2010 Reference Path To Local Assembly Won't Change?

Jul 20, 2010

We have upgraded our project from Visual Studio 2008 to Visual Studio 2010 without any issues until now. Our project contains a folder call Libraries which contains different versions of Oracle ODP.NET DLL's as well as different versions of Telerik DLL's. Our project contains references to one of the versions of each. The problem is once we remove the reference and re-add it by browsing to the new version, again inside the Libraries folder inside the project, it adds the reference, but to the same version we just removed. We can even copy the DLL to our desktop, remove the reference and add to the new one on our desktop and it still will point to the Libraries folder version???. The only we we can actual change the reference to the new DLL is by manually changing the path in the .vbproj file, which is obviously not going to work for us. The same behaviour worked perfectly in VS 2008. We switch our references quite often, when new versions come out, but also far more often to QA different versions of ODP.NET and Telerik Control DLL's, so manually editing the .vbproj file is becoming quickly cumbersome. If I browse to a specific version at a specific path, Visual Studio should ALWAYS do what I'm telling it to do..

I did some seaching and came across a few other people with the same issue. This better not be as designed and if it's a bug, which I believe it to be, when will it be fixed?[URL]..

View 14 Replies


ADVERTISEMENT

Reference A Dll Programmatically - Change The Local Copy Path For A Dll Reference?

Jan 26, 2010

Can I reference a dll programatically in VB.net? Or change the Local Copy path for a dll reference?

View 1 Replies

Get Permission From Microsoft To Develop Applications For Small Local Firms Using Visual Studio 2010?

May 13, 2010

I would like to know if I need to get permission from Microsoft to develop applications for Small local firms using Visual Studio 2010.

View 6 Replies

Add A Reference To DirectX11 In Visual Studio 2010 Ultimate?

Oct 24, 2010

Installed DirectX11 June 10 SDK on Win7 machine with VS2010 Ultimate. Project written in Visual Basic, targeting .net 2.0. Just need the directx audio player capability.

Tried to add reference to the SDK Developer Runtime Files.

Nothing from DirectX11 shows up in the add reference COM for the project.

I can't seem to make my project see or accept the DirectX11 .dll's.

Unclear of which one I need other than maybe XAudio2 (I think) to play a .wav file.

DirectX11 SDK Release Notes say's the following but I don't understand it.

MS says VC++ directories are depricated.

[Code]...

View 3 Replies

Visual Studio 2010 :: Unexplainable Null Reference Exception?

Mar 4, 2011

I have an application for working with files. It needs to work with the files one character at a time. I am using an ArrayList to store the data. Here's the code that's causing the problem:

Dim fileData As ArrayList = Nothing
Dim temp As Char = Nothing
While Not EOF(open_file_number)

[code].....

View 1 Replies

Change VB6 To Visual Studio 2010 VB?

May 12, 2012

[Code]....

how to change that auto redraw in visual studio since there have an error???

View 1 Replies

Visual Studio 2010 - .net Application Works With Files Dragged Onto The Exe But Crashes If There's A Space In The File's Path?

Jun 15, 2011

I'm developing an application in vb.net. You drag any type of file onto the exe, and a window pops up with some options for the file, then it saves the file to a different location, works some SQL magic, etc. It works great for the most part. The only issue I've found is that if the path of the file contains any spaces, the application will crash immediately with the error window:[URl]..I'm using: Private filename as String = Command$ This is located right inside my form's class declaration, not within a sub/function.Without this line, my program runs fine (although useless, without accessing the file).I've also tried (I think this was it, I don't have the code with me at the moment): Private filename as String = Environment.CommandLine So, in vb.net, is there a way to drag a file onto an exe and use that path name, even if there are spaces in the path name?

View 2 Replies

VS 2010 Change Version After Install-Visual Studio 2010 Installer

Jun 21, 2010

Well I used the Visual Studio 2010 installer to install my application and I want it to be able to change the version displayed in the in the Add/ Remove Programs (in the Control Panel). How can I do this without going through the install wizard again?

View 3 Replies

Change Start Up Menu On Visual Studio 2010?

Feb 8, 2011

i just got visual studio 2010 professional edition and it automatically opens up C++ i need it to open up a menue where i can choose visual basic or c++ just like at my college.

View 5 Replies

Change VB Project Code To C# Using Visual Studio 2010?

May 25, 2011

how to Change VB project code to C# using Visual Studio 2010?

View 3 Replies

Visual Studio 2010 - Change Target Framework In .NET Console App?

Aug 18, 2011

I created a VB Console app and it defaulted to .NET 4 but I need it to be .NET 3.5. I've been looking but all the references I find say to change it on the 'Compile' tab in properties but I don't have a compile tab or anything else that lets me change the target framework.

Note: I'm using VS2010 Ultimate

View 2 Replies

Visual Studio 2010-VB-Change The Form_Designer Takes Up To 1 Hour To Process

Nov 9, 2010

Every time I make even a very small change to a form in the form designer, when I try to move off the screen to write code, or run the application, VS 2010 takes up to 1 hour to figure out what the small change was, process it and then let me continue. Is there some fix that I am missing to make VS 2010 be able to handle small changes to the form_designer, or is this just the way it is?

View 6 Replies

Visual Studio 2008 - Assembly To Import DLL Library In .NET?

Feb 17, 2012

I am trying to import the GetWindowText in a VB.NET application.So based on other sites you just have to import the interopt service and add a DLLImport statement similar to C#. But somehow it is not recognizing the statement and getting a BC30001 (Statement is not valid in a namespace) compile error.

Here is the code I used.Imports System.Runtime.InteropServices

<DllImport("user32", CharSet:=CharSet.Auto, SetLastError:=True)> _Public Shared Function GetWindowText(ByVal hWnd As IntPtr, <Out(), MarshalAs(UnmanagedType.LPTStr)> ByVal lpString As StringBuilder, ByVal nMaxCount As Integer) As Integer End Function

View 1 Replies

C# - Enable Circular Dependencies In Visual Studio At The Assembly Level?

Jul 3, 2010

So in Visual Studio, you can't have two projects X and Y such that X references Y and Y references X.In general, I can totally understand how having a circular dependency can be problematic, for a variety of reasons.But is it really not possible to compile two projects that are interdependent in this way? It seems to me that it must be possible, since (in my mind -- maybe I'm completely off-base about this) having two mutually dependent assemblies is really not so different from having two mutually dependent classes -- a case which is legal and can be compiled.

It would make sense to me if you said, "two assemblies cannot depend on each other because the compiler could not compile one before the other"; except that it seems you could make the same argument for two classes within the same assembly, and clearly the compiler can deal with this scenario just fine.

Basically the reason I'm asking is not that I have some desperate desire to do this thing that I know is generally ill-advised anyway. Specifically I'm wondering because it would be nice if I could have two projects -- say, MyProjectCS and MyProjectVB -- that existed basically as two mutually dependent parts of a single unit, and were only separate because certain parts were written in C# and other parts were written in VB.NET.

Is it possible to enable this behavior (in Visual Studio, or elsewhere, for that matter)? If it's not possible within any IDE, it it at least theoretically possible, or could mutually dependent assemblies not possibly exist? If it's not even theoretically possible, why not? In other words, how are mutually dependent assemblies different from mutually dependent code within a single assembly?

View 5 Replies

Access Local Variable From Visual Studio Addin?

Mar 24, 2012

I am trying to write a visual studio addin. The following code is used to display the global variables or class names or function names of a selected text inside visual studio code window. However it do not display the variables defined inside a function. How can I modify this to display local variables?

'Call this function inside OnConnection event of the addin
Sub displayCodeElementName()
' Before running this example, open a code document from a project

[Code]....

View 1 Replies

VSTO ClickOnce Application Trying To Update Via Visual Studio Local File?

Jan 15, 2012

I've built a VSTO add-in for Microsoft Word and deployed to a webserver. Installation goes off without a hitch. When I create an updated version of the application and redeploy it to the webserver, the add-in correctly detects that there's a new version and attempts to update it. This is where I'm running into the following error (the "xxx" indicates that I had to censor something):url...The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. To install this version of the customization,first use Add or Remove Programs to uninstall this program: xxx. Then install the new customization from the following location: url...This appears to me as if I left a local reference of some sort in my Project, but I can't find anything of the sort. The only reference to this file is within the xxx.vbproj.FileListAbsolute.txt file that's generated in the bin/Debug folder.Not sure if this is also a clue, but I'm seeing Registry Keys added referencing this as the location of the VSTO Project Manifest.

View 1 Replies

Visual Studio 2008 Sp1 To Visual Studio 2010 Beta Sp2

Feb 17, 2010

Will i be able to successfully install 2010 beta 2 side by side 2008? because i want to test 2010 features and some development toolkits such as silverlight while i don't want to uninstall my visual studio 2008 professional.

View 2 Replies

C# - Add A Service Reference In Visual Studio, Through The Interface?

Nov 16, 2010

I'm currently trying to call a WCF service dynamically See here, therefore, I'm trying to understand what happens behind, when I add a service reference by the GUI of Visual Studio... What's generated..? An object is created and an implicit reference is created...

Are the references contained in a specific container, a sort of pool?

View 1 Replies

Create A Web Service Reference Manually In Visual Studio?

Apr 23, 2009

how to create a web service reference manually in visual studio. I do not want to use the "add reference" already contained in the ide.

View 6 Replies

Make Visual Studio 2008 Website Reference?

Oct 10, 2009

I'm trying to add a reference to the GAC version of System.Xml in a Visual Studio 2008 web site project. I right-click the project icon in the Solution Explorer, and click Property Pages. Under the References tree option, I click the 'Add' button on the right. I navigate to System.Xml in the .NET tab, and double click it (the Path it lists for System.Xml, C:WINDOWSMicrosoft.NETFrameworkv2.0.50727System.XML.dll, DOES exist). The dialog disappears, but... System.Xml does not get added as a reference! The list just stays the same.

View 3 Replies

VS 2010 Error With Applications Reference Required To Assembly

Oct 27, 2009

im building an application i started it in VB 2008 and i upgraded to VB 2010

then i made some mods and tryed to run the application and then

i get this error

Error2Reference required to assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.Windows.Forms.Form'. Add one to your project.C:UsersAdminDesktop

[Code].....

View 1 Replies

C# - Loading An Assembly Using Assembly.LoadFrom() As The Assemblies Are Located In A Different Path?

Apr 2, 2012

I am loading an Assembly using Assembly.LoadFrom() as the assemblies are located in a different path from Application Base directory.

Dim oAssembly As Assembly = _
Assembly.LoadFrom("C:\MyFolder\" + ddlXlate.SelectedItem.ToString() + ".dll")

And I consume a Type from that assembly without any problem:

oXML = CType(oAssembly.CreateInstance(sBaseType + ".XlateContainer"), _
XlateBase.XlateContainer)

However, the problem occurs when I try to use a Type from this assembly from within another method like the one below:

oComboBox.DataSource = _
[Enum].GetValues(Type.GetType(sType + "+ItemEnum," + sAssemblyName))

sAssemblyName is the one I loaded using LoadFrom() actually. After it said it cannot find the assembly, I used AssemblyResolve event which solved my problem :Subscribing AssemblyResolve event :

AddHandler AppDomain.CurrentDomain.AssemblyResolve, _
AddressOf MyResolveEventHandler

Event Handler Method:

Private Shared Function MyResolveEventHandler(ByVal sender As Object, _
ByVal args As ResolveEventArgs) As Assembly
Return Assembly.LoadFrom("C:\PSIOBJ\" + args.Name + ".dll")
End Function

And I thought maybe the error occurs because it cannot find a dependent assembly defined in assembly manifest file I loaded using LoadFrom() already but when I checked the args.Name, I saw it was trying to load same assembly and after that it worked without any problem. So basically a type in the loaded assembly cannot be found before the event adding change.

My old code was using AppDomain.CurrentDomain.Load() and Assembly.Load() methods and they were working fine without the AssemblyResolve event. I was able to reach types in dynamically loaded Assembly from every where within the same AppDomain.

LoadFrom() can find dependencies automatically within the same requested assembly path and that couldn't be problem as everything this dll needs was there. So at first it looked like a AppDomain problem to me as it looks like it seems it can reach assemblies from Load context instead of LoadFrom context and I am now using LoadFrom context.But now it seems I should pass oAssembly instance evertwhere to use any type from the loaded assembly?Doesn't it load the assembly where I can reach it everywhere (same AppDomain) using simple Type.GetType(...) method?

View 2 Replies

Visual Studio 2010 - Element Reference - Form "indirectly" By Simply Including "me" Instead Of "form1,"

Mar 22, 2011

I know that you can refer to a form "indirectly" by simply including "me" instead of "form1," for example.

Is there a way to do the same thing for form elements like text boxes or radio buttons?

Example:

CODE:

View 3 Replies

VS 2008 Visual Studio Cannot Start Debugging Because The Debug Target (path) Is Missing

Nov 21, 2009

I get this error every time I try to debug.But, I do not know how to fix it or why it started occurring.

View 1 Replies

The Located Assembly's Manifest Does Not Match The Assembly Reference

Oct 9, 2008

I've got an exception when I deployed my application: "the located assembly's manifest does not match the assembly reference" What I remember is changing the project name from the previous source code, does it affect that much?

View 1 Replies

.net - Which Version Of Visual Studio 2010 Contains Visual Basic SharePoint Templates

Aug 5, 2011

Does anybody know which version of Visual Studio 2010 contains the full set of Visual Basic SharePoint Templates? I am about to embark on a project to create Visual Web Parts to be used in a SharePoint report.

At the moment I am using Visual Studio 2008 and even though the WSPBuilder is installed none of the relevant SharePoint templates are present.Having searched SO and the web, most advise to install the templates via the Visual Studio command prompt: devenv /installvstemplates

Alas the Visual Studio command prompt is also missing from my VS2008 installation.So, the question remains: which version of VS2010 contains what I need for pain-free SharePoint development? There is a rather large price different between VS2010 Professional and VS2010 Premium, so can anyone tell me if the cheaper version (VS2010 Professional) contains all the Sharepoint templates?

View 3 Replies

IDE :: Adding References In Visual Studio 2010 Beta 2 (Visual Basic)?

Nov 25, 2009

I am just wondering how I can add Direct X references to Visual Basic in Visual Studio 2010 Beta 2. I cant find them in the .NET reference list, or the reference list, or anywhere. I downloaded the Direct X SDK for August 2009, but I can not add the .dll files to the reference list. Is there anything I can do to add them? I need the references for programming reasons.

View 5 Replies

Use OpenGL In Visual Studio 2010 In Visual Basic Project?

Jan 15, 2012

I want to use "OpenGL" in my project. Is it possible to associate it with "Visual Basic" application developed in Visual Studio 2010? If yes then how can we do it.

View 1 Replies

Convert Visual Basic 2010 To Visual Studio Pro 2010?

Apr 20, 2012

I have a project in visual basic 2010 and want to convert it to visual studio 2010 so I don't have to chose the "open with" every time. Is there a tutorial on how to do this?

View 4 Replies

VS 2010 Path To Reference Different?

May 29, 2012

I installed an application with an Oracle.DataAccess.dll on multiple pc's.The problem is that the location of the reference is different on all pc's.Is there a way to catch this problem or do I have to put the .dll in a central place on the clients pc?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved