Compiling a Workflow with Visual Studio 2010 and .Net Framework 3.0 results in this CSC error:
"resource identifier xxxxxxxx has already been used in this assembly"
where xxxxxxxx is a Workflow Type in my Project.
I'm using Workflow Foundation…
The solution consists of two projects: main.csproj and helper.csproj.
What Id'like to do is using dll which helper project will be complied into, as an embedded resource for main.dll.
For that purposes it's seems resonable to add custom compile…
I've got a situation where I need to generate a class with a large string const. Code outside of my control causes my generated CodeDom tree to be emitted to C# source and then later compiled as part of a larger Assembly.
Unfortunately, I've run…
Where is the .NET command line compiler (csc.exe) located after install?
I'm trying to set up my path to compile C# applications from the command line, but I can't find where csc.exe has been installed.
I'm using .NET 4 and Windows 7 Pro 64-bit.
After a struggle with creating a database (first with an entity framework, after without), we have a database (and an EntityModel_HFFContext file we don't use, it's not connected). Normal work proceeded, and I installed a NuGet-package for an MVC…
I am trying to compile one .Net c# project into multiple dlls. But here is the thing.
This is my project structure.
Bin
Dir1
Dir2
File1.cs
File2.cs
myproject.csproj
I want to compile this project into File1.dll and File2.dll. Both File1.dll…
I have just developed a small internal application and I'm using Octopus Deploy as the deployment software. I've been using Octopus for a number of years now without issue. However, I've just hit a rather strange "thing" which has got me a bit…
I've discovered that the csc.exe binary that comes with Roslyn can take a -langversion: command line argument in order to set the version of C# I would like to compile. But how do I choose which version of .NET I would like the compiler to…
I want to have an overall picture what is the relationship between Visual Studio, MSBuild and CSC?
I don't want to understand all of the aspects of each of them. But an overall picture is good.
Two important things are:
Responsibility of each of…
I have look completely in this two msdn article C# Compiler Options Listed Alphabetically and C# Compiler Options Listed by Category for compiler option for specifying the target framework version which can be used in command line building. I got…
Consider the following example code.
class Program
{
static void Main( string[] args )
{
DoSomethingWithAction( i =>
{
Console.WriteLine( "Value: {0}", i );
} );
Console.ReadLine();
…
We have a .Net 3.5 application that is built using some scripts that call msbuild.exe
Recently all our machines started automatically updating from .Net 4.0 to .Net 4.5 as part of a company-wide policty, and our build scripts started failing.
The…
I'm compiling from csc.exe (well, CruiseControl is...), and I need to reference a DLL in the GAC. I do not have the correct version of this DLL as a simple file, but there is a correct version in the GAC.
However, you can't reference assemblies in…
I've been working on a project, and as it's grown I realize that two parts that cannot be joined together are inter-dependent.
Let's call these two parts a.exe and b.dll. b.dll provides an implementation that allows a.exe to retrieve data, but I…
The command dotnet build for a razor page app with .net-6.0 throws lots of warnings like
CSC : warning RSG002: TargetPath not specified for additional file:
C:\dev\Foo\Foo\Pages\Admin\Administration\Users\Delete.cshtml.
…