Problem using UEStudio with VS2012/c#

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Problem using UEStudio with VS2012/c#

Postby johnw » Wed Aug 22, 2012 7:11 am

I'm using UEstudio Version 12.10.0.1005.
I've installed Microsoft Visual Studio 2012 with c#.
I'm using Windows 7 x64.
I have Microsoft .NetFrameworks 2.0 sp2 3.5 SP1 and 4.5 full (I don't have v. 1.0 or 1.1).

UE studio template for .netframework console don't work as it cannot find the compiler csc.exe.
It seems to only show .Netframework 1.1.4322|1.0.3705

I want it to be version 4.5. The templates for Visual studio 2010/c# doesn't work (I dont have this version installed).
How can I add a template for Visual studio 2012 and c# console Application?
I can see under compilers a visual studio 2010/c# but only c++ templates in the templates folder.
johnw
Newbie
 
Posts: 7
Joined: Wed Aug 22, 2012 7:08 am

Re: How to adapt UEStudio configs/wizards of VS2010 for VS2012?

Postby Mofi » Wed Aug 22, 2012 7:41 am

I don't have VS2012 installed, but it should be no problem to adapt VS2010 configurations to VS2012.

  • Open in Windows Explorer or any other File Manager the directory UEStudio Program Files directory\configs\ with administrator privileges.
  • Create in this directory a new directory with name Visual Studio 2012.
  • Copy all subdirectories from directory Visual Studio 2010 to directory Visual Studio 2012.
  • In all the text files in all the subdirectories of directory Visual Studio 2012 you have to change some variables in section [Variables] and some settings in section [Settings]. You may want to do this first only on the C# configuration you next want to use before applying the changes to all other configurations of C# and perhaps other programming languages too.
  • You have to adapt to VS2012 the setting Framework = and setting MSSDK = and perhaps others too.
  • You have to adapt to VS2012 the variables RootDir =, VcDir =, CommonDir =, SDKDir = and MSSDKDir = and perhaps some more.
I can't tell you the values for those settings and variables, but it should be no problem for you to find them out.

The following steps are just for completeness.

  • Open in Windows Explorer or any other File Manager the directory UEStudio Program Files directory\projects\ with administrator privileges.
  • Create in this directory a new directory with name Visual Studio 2012.
  • Copy the 4 *.wiz files from directory Visual Studio 2010 to Visual Studio 2012.
  • Open the 4 *.wiz files in directory Visual Studio 2012 and replace the text Visual Studion 2010 by the text Visual Studion 2012 at top of every file.
  • Save all 4 *.wiz files and close them.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3937
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Problem using UEStudio with VS2012/c#

Postby johnw » Wed Aug 22, 2012 10:54 am

Thank you for your reply.
I'm not entirely confident that I'll be capable of making these adaptions, but thanks anyway.
I may have to just wait for the company to update to Visual studio 2012.
johnw
Newbie
 
Posts: 7
Joined: Wed Aug 22, 2012 7:08 am

Re: Problem using UEStudio with VS2012/c#

Postby johnw » Fri Aug 24, 2012 8:07 am

can any forum member please explain why c# appears as an option under Microsoft Visual Studio 20xx, under compiler, yet under templates visual studio it's absent and only has c++ templates? It's Under Microsoft Dotnet Framework, but so also is c++.
johnw
Newbie
 
Posts: 7
Joined: Wed Aug 22, 2012 7:08 am

Re: Problem using UEStudio with VS2012/c#

Postby amicidavinci » Tue Oct 16, 2012 9:06 am

The problem is the path in the compiler template. Also - there is an unrecognized switch in the compiler command line called "incremental" - I just removed that. I then hard-coded the path to CSC.exe and it worked fine.

With your C# project loaded, go to
Build >> Select Compiler >>

It should open the correct project type for you (Class Library, Console Application, or Windows Application)

This is from my config. I chaged the Framework setting as seen below. I believe the right side of the pipe delimiter is the "compatibility level" - so you can use your VS2012 compiler to create a binary that will work for a lower version of .NET. I just set both sides the same:

[Settings]

Target =
Framework = 4.0.30319|4.0.30319
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =
Category&02 = COMPILER OPTIONS
Warning Level = 3|0|1|2|4
Excluded Files = Excludes
References = References
Conditional (Debug) = DEBUG;TRACE
Conditional (Release) = TRACE
Unsafe Code = /unsafe-|/unsafe+
Check Arithmetic = /checked-|/checked+
Warn As Error = /warnaserror-|/warnaserror+
Compiler Options =
Debugger=$(SDKPATH)GuiDebug\DbgCLR.exe


[Variables]

CPATH = $(HKEY_LOCAL_MACHINE\SOFTWARE$6432\Microsoft\.NETFramework)v$(Framework)
WL = /w:$(Warning Level)

[Environment]

PATH = C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%
amicidavinci
Newbie
 
Posts: 1
Joined: Tue Oct 16, 2012 8:54 am


Return to UEStudio General Discussion

cron