Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7567383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:39:09+00:00 2026-05-30T14:39:09+00:00

I get an error when i compile this program: using System; using System.Collections.Generic; static

  • 0

I get an error when i compile this program:

using System;
using System.Collections.Generic;

static class main {
    public static void Main() {
        Stack<int> a;
    }
};

with this cmd:

C:\Users\tomc\Desktop\l>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc test.cs

I get this error:

test.cs(12,3): error CS0246: The type or namespace name ‘Stack’ could not be
found (are you missing a using directive or an assembly reference?)

However when using this command it builds fine:
C:\Users\tomc\Desktop\l>C:\Windows\Microsoft.NET\Framework64\v3.5\csc test.cs

Was Stack removed from .NET 4 ? I can’t find any indication that it was on MSDN.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T14:39:10+00:00Added an answer on May 30, 2026 at 2:39 pm

    The C# compiler has a default “configuration” file (called a response file) located in the .NET Framework installation directory (c:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.rsp). This response file is just a text file that contains a set of compiler command-line switches that are passed by default when compiling a program. You can also specify your own file in addition to the default one (see the link above).

    In your case, this file might be missing or corrupted. You can check whether the references to the core libraries are present there. For example, here is the csc.rsp file from my machine:

    # This file contains command-line options that the C#
    # command line compiler (CSC) will process as part
    # of every compilation, unless the "/noconfig" option
    # is specified. 
    
    # Reference the common Framework libraries
    /r:Accessibility.dll
    /r:Microsoft.CSharp.dll
    /r:System.Configuration.dll
    /r:System.Configuration.Install.dll
    /r:System.Core.dll
    /r:System.Data.dll
    /r:System.Data.DataSetExtensions.dll
    /r:System.Data.Linq.dll
    /r:System.Data.OracleClient.dll
    /r:System.Deployment.dll
    /r:System.Design.dll
    /r:System.DirectoryServices.dll
    /r:System.dll
    /r:System.Drawing.Design.dll
    /r:System.Drawing.dll
    /r:System.EnterpriseServices.dll
    /r:System.Management.dll
    /r:System.Messaging.dll
    /r:System.Runtime.Remoting.dll
    /r:System.Runtime.Serialization.dll
    /r:System.Runtime.Serialization.Formatters.Soap.dll
    /r:System.Security.dll
    /r:System.ServiceModel.dll
    /r:System.ServiceModel.Web.dll
    /r:System.ServiceProcess.dll
    /r:System.Transactions.dll
    /r:System.Web.dll
    /r:System.Web.Extensions.Design.dll
    /r:System.Web.Extensions.dll
    /r:System.Web.Mobile.dll
    /r:System.Web.RegularExpressions.dll
    /r:System.Web.Services.dll
    /r:System.Windows.Forms.Dll
    /r:System.Workflow.Activities.dll
    /r:System.Workflow.ComponentModel.dll
    /r:System.Workflow.Runtime.dll
    /r:System.Xml.dll
    /r:System.Xml.Linq.dll
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get an error when I compile this code: using System; public struct Vector2
How can I get this to compile? The error is when I start using
I have the following code: using System; using System.Linq; using System.Linq.Expressions; public class Program
I get a compile error, which I'm slightly confused about. This is on VS2003.
I always get this error when trying to compile my file with Boost::GIL PNG
When I compile a project I get this error: C:\DATOSA~1\FAXENG~1>nmake /f Makefile.vc clean Microsoft
I can't seem to compile ironruby in ruby 1.8.7. I always get this error:
When trying to compile my class I get an error: The constant 'NamespaceName.ClassName.CONST_NAME' cannot
I get the following error when I try to compile my C# program: The
I have a simple Class package chapter10; public class CompilationTest { public static void

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.