You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't like checking dependencies into repos, but I think it's the best option here because
Daniel15.Sharpamp.dll does not exist in NuGet
It also does not exist in the releases or repo files of Daniel15/Sharpamp
It's not hosted on any web server as far as I can tell
We can't run the installer on the build machine because it crashes on a policy lookup in the registry if .NET Framework 2.0 is not installed, and it's definitely not installed on the GitHub Windows Server 2022 runners. Faking out the registry seems very difficult because it uses the found frameworks to install DLLs into the GAC. There isn't even a way to click the Ignore button on this error, because Inno Setup's /SUPPRESSMSGBOXES flag always picks the Abort option.
The text was updated successfully, but these errors were encountered:
I was able to get the build working on a standalone VM with the following PowerShell script. Daniel15.Sharpamp.dll was saved to the .\packages\ directory in the repo.
del -force -ErrorAction Ignore Sharpamp.exe,Sharpamp.log,WinampNowPlayingToFile\Daniel15.Sharpamp.dll
msbuild -t:clean
rmdir -Recurse -force -ErrorAction Ignore .\artifact\,.\gen_WinampNowPlayingToFile\Release,.\WinampNowPlayingToFile\bin,.\WinampNowPlayingToFile\obj
# Copy the dependency to a location where the C# build can find it.# This build directory doesn't exist before the build is run, so create it early.
mkdir -force -ErrorAction Ignore .\WinampNowPlayingToFile\bin\Release\
copy .\packages\Daniel15.Sharpamp.dll .\WinampNowPlayingToFile\bin\Release\
Write-Output"Building plugins"# Building the C++ plugin will transitively build the C# plugin. Unlike building the entire solution, this lets us skip the Test project for now, which is broken with some weird NuGet xUnit error.
msbuild /m /p:Configuration=Release gen_WinampNowPlayingToFile -restore
Write-Output"Preparing artifact"
mkdir .\artifact\
# The output directory is different based on whether the sln or vcxproj was built for some reason.
copy gen_WinampNowPlayingToFile\Release\*.dll .\artifact\
mkdir .\artifact\plugins\
move .\artifact\gen_WinampNowPlayingToFile.dll .\artifact\plugins\
I don't like checking dependencies into repos, but I think it's the best option here because
Daniel15.Sharpamp.dll
does not exist in NuGet/SUPPRESSMSGBOXES
flag always picks the Abort option.The text was updated successfully, but these errors were encountered: