#"Ensure the file is a valid audio file and is not DRM protected."

22 messages · Page 1 of 1 (latest)

elder pewter
#

I tried integrating my project with Git and now it returns this error whenever I try building the project (this is during the content pipeline phase, assume it's trying to build "audio/music.ogg")

Failed to open file music. Ensure the file is a valid audio file and is not DRM protected.

I checked the path (it exists), the permissions on the file (chmod 777 does nothing), and the permissions on ffmpeg (chmod 777 still does nothing)

flat hornet
#

can you play the .ogg file in a music player?

elder pewter
#

I even replaced the files and it didn't work

elder pewter
#

This only happens with audio files, I added sprite files and textures and they worked fine

mental sonnet
mental sonnet
#

My problem got resolved: I wasn't using Monogame with .NET 8

elder pewter
mental sonnet
#

Inside your Solution you should have a .csproj file, in it there is a line like <TargetFramework>net8.0</TargetFramework>
Set it to the version of your liking, and make sure you have the SDK installed

elder pewter
mental sonnet
#

No, use 8

#

I was on 9 and it didnt work

#

And I downgraded

elder pewter
#

How do you downgrade? Just install the other SDK and it'll automatically detect?

mental sonnet
#

Install the SDK and set the framework in the .csproj file

elder pewter
#

ok

elder pewter
mental sonnet
#

Great!

flat hornet
#

Alternatively someone could try setting the DOTNET_ROLL_FORWARD=Major environment variable?

mental sonnet
native heron
native heron