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

  • Home
  • SEARCH
  • 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 638557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:44:43+00:00 2026-05-13T20:44:43+00:00

I have a .Net project which uses the MySQL connector which is located in

  • 0

I have a .Net project which uses the MySQL connector which is located in the GAC.

In my Nant build file there doesnt seem to be a way to tell CSC to look in the GAC to find this dll (or type information) and my project wont build.

Is there a way to tell Nant that this reference does exist and its in the Gac.

Its wierd really because obviously all of the Microsoft libraries e.g. “System” are in the Gac and it doesnt have a problem building anythign referencing those. I have confirmed that the Mysql Connector is also in the Gac.

Thanks.

  • 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-13T20:44:44+00:00Added an answer on May 13, 2026 at 8:44 pm

    csc looks for DLLs in the current directory, in the framework directory, in the directories mentioned in the /lib switch, in the directories mentioned in the LIB environment variable.

    But not in the GAC. You could compile with csc /r:full_path_to_the_gac_file.dll, it works but is not very user-friendly.

    .NET assemblies are installed in two places: in the GAC and in the framework directory (which explains why they are found).

    You should copy the DLLs you need in a given directory and reference it with the /lib switch. Of course, at run-time, it will be taken from the GAC.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C# project A which uses a .net wrapper DLL and a
I have Visual Studio .Net project which uses ADO connection to call stored procedure
I have a setup project for a .NET Service Application which uses a .NET
I have a VB.net project which uses a background worker to do some stuff.
I have an asp.net web project which uses a SqlProfileProvider for membership structure,i am
I have a class from project A (.NET 4) which uses the the AggregateException
I have written a project by ASP.NET and C# which uses dataset for connecting
I have a (com) c++ project, which uses a (.net) c++ dll. The project
I have a .NET project which references another assembly that is built outside of
I have an ASP.NET project which is a front-end to a database. In addition

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.