-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
VS Code - AudioPlayerOptions does not contain definition for CategoryOptions #135
Comments
Same error happens when calling dotnet publish on a mac when trying to create a version to upload to appstore |
I have found the problem source |
@jfversluis Can you help us out, since there is no reaction from the vscode Team? |
The property only exists on iOS and MacCatalyst, your screenshots show that you aren't guarding the code with a #if therefore it's trying to compile for all platforms. Does it work if you place the #if from the commenter out section below? |
i had it guarded by #if, had no issues to compile in visualstudio on windows and debugging to ios device. the error seems to be happening only when compiling on mac |
Do you have the same .NET SDK and MAUI workloads installed on both machines? To check this you run the following in command prompt/terminal: Dotnet SDK Workloads |
Since it is a compiler error from vscode i doubt that i has something to do |
There is no compiler in VS Code it will be using whichever compiler is installed as part of whichever .NET SDKs are installed. The workloads might have something to do with it. It will be much easier to prove once I know what workloads you have installed |
Alright, here you go! |
OK, i have an update for you all. |
Thanks for the update. We have recently discovered that workloads can impact which TFM is being targeted when the NuGet package is built. At times this can be painful especially when you have certain preview builds installed. Glad it's solved it for you |
Cannot build solution on the mac with Visual Studio Code
because of that error, in Visual Studio 2022 running from a windows machine
it compiles just fine and the simulator runs without any problem.
If i open the definition from VS Code i can see that its somehow does
not have the correct context.
I dont know how i can change the framework context in vscode.
They only thing which i can do is click on the brackets select as target
my iphone.
I can overcome that thing for the moment since i am able to deploy
via visual studio 2022 on windows (remote device).
The text was updated successfully, but these errors were encountered: