OmniSharp / omnisharp-sublime

C# IDE Plugin for Sublime Text 3
http://omnisharp-sublime.readthedocs.org/en/latest/
MIT License
552 stars 64 forks source link

System.Windows.Forms #185

Closed IBIT-ZEE closed 6 years ago

IBIT-ZEE commented 9 years ago

Why Autocomplete/intellisense fails when I try to use System.Windows.*

for example : using System.Windows.Forms

nosami commented 9 years ago

Did you add a reference to System.Windows.Forms in your project?

IBIT-ZEE commented 9 years ago

Thanks... This is a single file program... I have no project file...

Some assemblies are recognized by intellisense... like collections, io, linq, etc. but there are a lot missing... like Windows...

Can I had a reference to an assembly in a single code file... like my test.cs or if I create a app.config onmisharp-sublime add references to assemblies automagically,,,

Thanx

jchannon commented 9 years ago

Not really, if you add a reference you are modifying a csproj. If you dont have one of those then it wont work.

Just create an empty solution in Xamarin/VS

On 16 June 2015 at 14:29, IBIT.ZEE notifications@github.com wrote:

Thanks... This is a single file program... I have no project file...

Some assemblies are recognized by intellisense... like collections, io, link, etc. but there are a lot missing... like Windows...

Can I had a reference to an assembly in a single code file... like my test.cs or if I create a app.config onmisharp-sublime add references to assemblies automagically,,,

Thanx

— Reply to this email directly or view it on GitHub https://github.com/OmniSharp/omnisharp-sublime/issues/185#issuecomment-112428239 .

nosami commented 9 years ago

That's not quite true... omnisharp-server will work if you just have a bunch of cs files and dll files in a folder without any project files. It will reference every dll that it finds.

Although then you are on your own when it comes to compiling - xbuild/msbuild aren't going to work.

You'd need to fallback to csc/mcs etc

IBIT-ZEE commented 9 years ago

good info nosami... i'll try that... maybe with symbolic links we can some funcionaity,,,