All Questions
Tagged with .net-4.5 visual-studio
64
questions
171
votes
6
answers
223k
views
Targeting .NET Framework 4.5 via Visual Studio 2010
Today I installed the .NET Framework 4.5 on my machine expecting to be able to use it from Visual Studio 2010, since it's just a minor update that should't pose problems for Visual Studio ...
124
votes
2
answers
85k
views
How to select .NET 4.5.2 as a target framework in Visual Studio
I have installed .NET Framework 4.5.2 on Windows 8.1. But in Visual Studio 2013 I do not see the .NET Framework 4.5.2 option (see screenshot). How do I target my project for .NET 4.5.2?
104
votes
15
answers
55k
views
Can Visual Studio 2012 be installed side-by-side w/ Visual Studio 2010?
Will Visual Studio 2012 interfere/break .NET 4 and/or Visual Studio 2010 if installed side-by-side on the same instance of Windows?
30
votes
3
answers
34k
views
Visual Studio "Target framework" missing
I am trying to compile my .NET Standard class library project with .NET Framework 4.5.2. However, as you can see in my screenshot, version 4.5.2 is not shown in the offered list of target frameworks:
...
26
votes
2
answers
71k
views
Not allowed to load assembly from network location
I've recently set up a new Windows Server 2012 R2 environment and installed Visual Studio 2012.
Now I'm having a problem with multiple .NET 4.5 project's I migrated from my old server, a Windows ...
22
votes
2
answers
5k
views
Target 4.5.1 and Any CPU runs as 32 bit on x64, 4.5 runs as 64 bit, Why?
Visual Studio target 4.5.1 and Any CPU runs as 32 bit on x64, but when targeting 4.5 and Any CPU it will run as 64 bit on x64 system. What has changed in 4.5.1 to make it run in WOW mode?
Hope this ...
22
votes
3
answers
18k
views
Reference could not be added because of same name
Since the update to VS 2013 I have the behaviour that I cannot add a reference to 2 projects with the same name. I did the following:
Added 3 solution folders A, B and C.
Added a project of type ...
20
votes
4
answers
24k
views
Installing Visual Studio 2012 Ultimate on Windows 8
While trying to install the Visual Studio 2012 ultimate trial on Windows 8 Release Preview I got the following error message
The .Net Framework installed on this machine does not meet the minimum
...
19
votes
2
answers
14k
views
.NET 4.5 project not compiling in Visual Studio 2022
I have installed Visual Studio 2022 on my PC today. I have an old app, which targets .NET 4.5. I see this error when attempting to build/compile the project:
"Error MSB3644 The reference ...
18
votes
1
answer
25k
views
Store String Array with Values in Application Settings [duplicate]
I've modified my Settings.settings file in order to have system_Filters be a System.String[].
I would like to populate this variable within the Visual Studio designer and not from within the code. I ...
17
votes
7
answers
3k
views
Issue Installing Entity Framework 7 RC1
I 'm trying to install EF7 rc1 to an existing project:
PM> Install-Package EntityFramework.MicrosoftSqlServer –Pre
but I get the following error:
Install failed. Rolling back...
Package '...
17
votes
2
answers
7k
views
Visual studio 2013 + .Net 4.5.1 + Edit and continue 64 bit: not working
Supposedly vs 2013 added support for edit and continue 64 bit (see http://blogs.msdn.com/b/visualstudioalm/archive/2013/06/26/debugging-support-for-64-bit-edit-and-continue-in-visual-studio-2013.aspx)....
17
votes
5
answers
18k
views
Does Visual Studio 2010 support .NET 4.5 CTP?
... or do I absolutely need Visual Studio 11 Developer Preview?
I'm mostly concerned with ReSharper support; 6.1 EAP isn't available yet.
I'm going to be making a WPF 4.5 greenfield application (as ...
12
votes
2
answers
20k
views
Could not run the "GenerateResource" task because MSBuild could not create or connect to a task host with runtime "CLR4" and architecture "x64"
I am using Visual Studio 2017 Enterprise version 15.7.1 and .NET Framework 4.5.
I just installed Windows 10 Update version 10.0.18363 build 18363.
I can build other projects in the same Solution, but ...
9
votes
2
answers
912
views
Directory.GetFiles - different output dependent on OS
I have a simple program. It runs .NET 4.5 and is built in Visual Studio 2013.
D:\\MyDir is full of .xlsx files and no .xls files. When I run the program on Windows 8.1 x64, the filter for *.xls ...
9
votes
2
answers
2k
views
visual studio debug fatal error 0x8007000e with .NET 4.5 while debugging .NET 4.0 application
After installing VS2012 and .NET 4.5 both Visual Studio 2010 and 2012 started hanging when debugging our application with a fatal error 0x8007000e. I know this error means the process is out of memory ...
6
votes
2
answers
4k
views
Build error when using VS 11, .NET 4.5 and Entity Framework
In Visual Studio 2010, my solution was using .NET 4.2 (Entity Framework June 2011 CTP) so I could use spatial types in Entity Framework. When I upgraded to Visual Studio 11 Beta, it wouldn't build ...
6
votes
2
answers
5k
views
Convert a C# Library to Net.Core
As .NET Core is getting nearer, I will start to convert our Library to NET-Core, so that it could be used from our old Code (Net 4.5) and Net Core! But for me it is not clear what Type should my ...
6
votes
2
answers
172
views
Visual Studio: can reference Win8.1 project from Net4.5 test project?
My Windows app consists of 4 projects targeting Windows 8.1 and several testing projects:
The "...App.Core" project was previously a Windows 8 project, which also targeted the .Net 4.5 framework. But ...
5
votes
2
answers
1k
views
Using VS 2013 and .net 4.5.1 but still getting “Changes to 64-bit applications are not allowed”
I'm using VS 2013 Ultimate with Update 2 on Win 8.1 x64 and VS won't let me use edit and continue on a simple console application. The console app is set to use .net 4.5.1 and AnyCPU but whenever I ...
5
votes
1
answer
3k
views
How to convert a Portable Class Library (PCL) to a normal class library?
I have a Portable Class Library (PCL) that needs conversion to a normal class library (targeted only at .NET 4.5).
I've tried editing the .csproj file, with no success. I'm wondering how to do this?
5
votes
1
answer
1k
views
Is my build script for targeting multiple target frameworks working correctly?
I wrote a little MSBuild script to build my project on multiple versions. When I run it from VS2012 Command Prompt it works, I don't get any errors or exceptions. However when I compare the produced ...
4
votes
0
answers
2k
views
Unable to attach debugger to a process running as different user Visual Studio 2012/2013
I have a Windows Service running as a low privileged domain account. My account is a local administrator. When I try to attach the debugger to the service when the project/solution is open in Visual ...
3
votes
1
answer
142
views
The Mysterious "usage" Tag in Visual Studio Documentation XML Comment Tags
I often use XML documentation to document my classes, methods and properties but take a look at this method from Microsoft:
Usage? What kind of sorcery is this? How does one emulate this wizardry?
...
3
votes
2
answers
3k
views
put $(SolutionDir)\packages\ in .csproj file instead of ..\packages\
I have a solution with some class libraries that are used in multiple other projects. When I do an Install-Package from VS it will take $(SolutionDir)\packages\ and translate that into a relative path,...
3
votes
1
answer
3k
views
Edmx file with Visual Studio 11 Beta .Net 4.5
I am having trouble creating a new edmx file using Visual Studio 2011 beta
Target framework .Net 4.5
Class library project
After adding an empty model I get the error below
Error 6039: warning ...
3
votes
1
answer
897
views
implicit/explicit cast confusion on IReadOnlyCollection
Why are different collections (that all implement the IReadOnlyCollection interface) handled differently by the compiler when trying to turn them into IReadOnlyCollection?
IReadOnlyCollection<int&...
3
votes
1
answer
1k
views
Unable to target .NET Framework 4.5 in Visual Studio 2013
For my project I'm required to target Microsoft .NET Framework 4.5, but am unable to do so.
Installed programs:
Whenever I try to install .NET Framework 4.5, it tells me it's already installed:
3
votes
1
answer
671
views
Why don't my Tasks show in the Visual Studio Tasks window?
I'm creating some Tasks using this code:
private Task PollSomething()
{
return Task.Run(
async () =>
{
while (!_cts.Token.WaitHandle.WaitOne(...
3
votes
1
answer
145
views
Why does Visual Studio 2010 ask me to update a solution created in 2010?
I'm trying to open a VS 2010 solution on another computer, and VS is prompting me to update the solution. I don't understand why.
Here's the story.
I created a solution with Visual Studio 2010 on ...
2
votes
2
answers
481
views
XML to Flat File using C#
I am using XMLDocumnet to create the XML file. But for the interface, I need to share them as the flat file.
Please help.
XmlDocument doc1 = new XmlDocument();
string loadFilePath = ...
2
votes
2
answers
2k
views
When running debugger from .exe, how do I view the source code?
I am trying to view the source code of an installed application so I may debug it. My debugger is Visual Studio, using .Net 4.5. To open the file, I selected "Open from source code" in Visual Studio, ...
2
votes
1
answer
143
views
Regex nested parentheses not working in one case
Using C# Grouping Constructs in Regular Expressions one can match the content inside nested parentheses as shown by this response. Following code correctly returns (b/(2c)) and (abc) :
st = "Test(b/(...
2
votes
1
answer
2k
views
Dllimport to works in console application, but not in ASP.NET website
I have never worked with DLL import, so I have a fun problem.
I am trying to implement Ghostscript.NET in a hobby project. So I have made a project which is called GhostscriptSharp. This project has ...
2
votes
1
answer
2k
views
Entity Framework Build Issue in VS 2012 .NET 4.5
Is there any trick/workaround/known "gotcha" regarding Entity Framework 4 and Visual Studio 2012?
I have a project that works and compiles perfectly on my Windows 7, VS 2010, .NET 4 box. Over the ...
2
votes
3
answers
219
views
SQL case statement to a better C# method
I have code in SQL that will take the length of a SMS message and tell me how many parts the message will be.
Messages <= 160 characters are one part.
Messages > 160 characters become multipart ...
2
votes
0
answers
551
views
Stuck between "Name Can Be Simplified" and "Type arguments cannot be inferred"
Visual Studio seems to be fighting with itself, as it keeps bouncing back and forth between telling me I have too much type information and not enough.
If I use the following function call:
// 2. ...
1
vote
2
answers
3k
views
Visual Studio 11 metro apps unable to add reference?
I have installed Windows 8 and Visual Studio 11 to develop metro style apps. But each time i try to create Metro app project the projects get created but in reference there is nothing added but the ...
1
vote
2
answers
2k
views
Principal with new ASP.NET Web API
Some time ago I built API using asp.net Web-api beta. I read somewhere that when hosted in IIS, the web-api inherits the Identity from web application in which its running. My api is also running ...
1
vote
1
answer
126
views
Previously tested Regex is not working now, but works in Regex Tester
I have the following:
var exp = new Regex("(.+):(.+)-(.+)");
var matches = exp.Matches("AR1:CP1-CP2");
When I go to http://regexstorm.net/tester this works:
And I'm certain I had ...
1
vote
2
answers
255
views
Why is my clipboard-manipulating application behaving differently when run outside of Visual Studio?
I have a console app with an "output type" of "Windows Application" (to achieve a headless behavior, i.e. no UI, no console window). The purpose is to "clean" text in the Windows clipboard, i.e. trim ...
1
vote
2
answers
2k
views
Cannot find .net Framework 4.0 or .net Framework 4.5 in Visual Studio 2010
I have Visual Studio 2010 installed. But I try to open a project in it, I cannot find .net Framework 4.0 or .net Framework 4.5 in the target framework. I have installed both. still I cannot find it. ...
1
vote
0
answers
855
views
symbols, visual studio, versions, and symchk
I have a project in visual studio (c#) which is using .net 4.5, I arrived at a point where I need to debug the framework source to understand what's happening in a multithread deadlock.
I found http:/...
0
votes
2
answers
1k
views
InvalidOperationException After installing Visual Studio 11 Beta
I recently installed Visual Studio 11 Beta with .Net Framework 4.5 on mine production machine (but left Visual Studio 2010 side-by-side). It worked fine for me for couple of days, but then it started ...
0
votes
2
answers
395
views
Converting console application from 4.5.1 to 3.5 in visual studio causes the console App.config to no longer be picked up
I have a Console project that was created targeting .Net 4.5.1 that needs to be re-targeted to .Net 3.5.
When I re-target in Visual Studio 2013, the original config file is no longer picked up.
...
0
votes
1
answer
4k
views
When is Settings.cs created?
For a C# .NET 4.5 application in Visual Studio 2012 (or any .NET and VS version), when is Settings.cs created or first referenced?
I use Settings.cs to retrieve some user preferences on program ...
0
votes
1
answer
2k
views
Can I Create C# Standalone Application Than Runs Without Installing in Windows?
I am building a standalone Windows C# console application using .NET Framework 4.5. Since I want it to run in background without command prompt appearing, the output type is set to 'Windows ...
0
votes
1
answer
612
views
Visual Basic. Method cannot be reflected
I have a problem using soap client in vb.net with Visual Studio 2015 Community. I want to use to soap client library, but I can't find it.
So, I found the wsdl.exe command in Visual Studio 2015 ...
0
votes
1
answer
2k
views
This project is incompatible with the current version of Visual Studio for vs2013 ultimate from vs2013 express
I am currently running vs2013 ultimate Update 5, updated recently, from my laptop and another developer is running vs2013 express on their machine. Up to this point I have been able to pull the ...
0
votes
1
answer
51
views
Adding DNN site to Visual Studios
I'm building a new DNN site. I've got everything up and running with IIS and can navigate to the site with dnndev.me, but I'm wondering how I can import the project to VS2013? I know that I can make ...