Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Package uses root namespace that is one of my main class names

$
0
0

I'm using IronPython for my project. The setup is following:

Project.Main  - MyProject.Python     - IronPython package

Project.Main has a class called Community that is one of the main classes. It is used everywhere.

Now has IronPython a namespace called Community.CsharpSqlite with a class called Sqlite3.

  • I do not need to reference this class within MyProject.Main
  • I am not using any classes directly from the IronPython package within MyProject.Main
  • I only refer to wrapper classes in MyProject.Python.

All my code doesn't compile anymore though because I'm getting:

Error CS0118 'Community' is a namespace but is used like a type

This is a very large project and I do not want to start prefixing all my references to the Community class with a namespace prefix.


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>