-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unity Project have some trouble. #2088
Comments
Occurs after updating to the latest VS Code. |
@NakOh If you |
This looks like a Unity project rather than a .NET Core project, so I'd expect @NakOh: Have you tried building your Unity project? |
@DustinCampbell building the unity project will not help. |
@aohajin : Why would it not help? Based on the error, my assumption is that the project is expecting to find a binary on disk that isn't present. |
How to build dotnet Build? .NET Core용 Microsoft (R) Build Engine 버전 15.5.179.9764 MSBUILD : error MSB1011: 사용할 프로젝트 또는 솔루션 파일을 지정하십시오. 이 폴더에 프로젝트 또는 솔루션 파일이 두 개 이상 있습니다. It's korean. It means. One More Project or Solution in Folder And .NET Core용 Microsoft (R) Build Engine 버전 15.5.179.9764 /Users/minsookim/GitHub/PlayHoldemClient/PlayHoldemClient.sln : 솔루션 파일 error MSB5004: 솔루션 파일에 이름이 "PlayHoldemClient"인 프로젝트가 두 개 있습니다. 빌드하지 못했습니다. /Users/minsookim/GitHub/PlayHoldemClient/PlayHoldemClient.sln : 솔루션 파일 error MSB5004: 솔루션 파일에 이름이 "PlayHoldemClient"인 프로젝트가 두 개 있습니다. |
@DustinCampbell because the dll required was not at the place where omnisharp thought it should be.. but Unity(5.6.5f1) actually put the dll here: |
@NakOh did you tried to install mono package from homebrew? If not - try it, unity projects works on my side with dotnet + mono. Looks like this extension will never work as should, better to use old good checked solutions like mono. |
FWIW, to work with Unity, I recommend installing mono from brew like so:
rather than
The latter does not include large swaths of Mono, including Mono's msbuild (which OmniSharp will use if present). |
@DustinCampbell standard
|
it works now? Cool! I haven't looked at it in quite awhile. |
and 2 packages:
|
I just tried |
Well, it works for unity projects on osx, I dont care about vscode as standalone C# development editor, only as IDE-companion for unity. |
@DustinCampbell btw, I checked omnisharp log, it filled with warnings too, but no errors and intellisense works correctly. |
@NakOh I have only 3 packages installed through homebrew:
With unity 2017.3 i have similar warnings at log: https://gist.github.com/Leopotam/316ccbb113ae191e73618ec432ef3492 |
@Leopotam i want to fix this problem.. |
@NakOh I dont remember (I dont see any settings at my prefs about it), but there is "gear" button at notification window, maybe you can tweak this behaviour through some settings there? |
@Leopotam |
@NakOh ahaha, you have the sense of humor :D You can check last year of development in commits list - they fixed only unit-tests support, nothing more. All critical fixes were did by community PRs. So, if you want to see how MS-team works - you will die for age first. If you want to see solution - you should doing it by yourself and make PR. |
@Leopotam |
Hi @NakOh @Leopotam The warning about project load issues may or may not reflect a problem. OmniSharp raises this warning if there are actual issues loading the project, or if there are MSBuild warnings when building/restoring the project. We plan to fix this via #2110. You can verify that these warnings are ignorable by building/restoring your project and seeing if there are any warnings or errors. If there are, this is what OmniSharp is prompting for. I agree that this behavior is annoying and that's why we plan to fix it. |
I was just in the same boat, @iambumblehead. I believe if you change your OutputPath in your .csproj files that should fix your problems, though! |
I'm getting the wrong directory issue too. dlls and such are expected to be in temp/bin, are actually in library/ScriptAssemblies instead.
@TheWanderingBen I tried this and it worked for a while, until those lines got switched back again in my .csproj files later on the same day :/ |
@NakOh It's so long time ago but for the others,
|
I use Debugger for Unity and still have this issue. |
@LoranceChen its because |
@Leopotam, Thanks. |
@LoranceChen shit happens, its my standard workflow on osx last 3 years. Custom codestyle formatting - same thing, no any progress from |
I got it working by dropping a symbolic link of Library/ScriptAssemblies into Temp/bin named Debug. |
Nice solution. Did you get it to last any decent amount of time? |
@schplorg, for me symbolic links didn't help. They just removed "Unable to resolve assembly" warnings =( Could someone help here? |
same issue for me, can not found the assembles in Temp/bin/Debug |
This is a regression in extension 1.21.4. you could also install 1.21.5 VSIX from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.5 (it's not yet available on the marketplace) |
Thanks, @filipw, adding |
yep - I would just advise to remove it after 1.21.5 is shipped to the marketplace, since with a) potentially unstable |
v1.21.5 is out in the Marketplace 🎉 |
yes correct it was published yesterday 👍 |
Please use the new Unity extension for VS Code. See details at https://code.visualstudio.com/docs/other/unity |
Environment data
dotnet --info
output:VS Code version:
Version 1.20.1(1.20.1)
C# Extension version:
1.14.0
Steps to reproduce
Open Project ->
Expected behavior
Don't Error
Actual behavior
Log :
The text was updated successfully, but these errors were encountered: