Same errors with dependencies but different message error.
Compiling oxide from source
Discussion in 'Rust Development' started by Vlad-00003, Oct 20, 2017.
-
Attached Files:
-
-
Wulf Community Admin
-
[DOUBLEPOST=1508521466][/DOUBLEPOST]Code:This bug is being reported all over the place and Microsoft is repeating the same thing: "we don't have enough information". It is clearly a bug in Visual Studio 2017, it's just that there is no sample app to prove it. We have a project in Visual Studio 2015 that compiles and runs fine. Yet, we cannot open the same project in Visual Studio 2017. I have 15.4.1. I upgraded today. We cannot work in Visual Studio 2017 because of this bug
-
Wulf Community Admin
-
Wulf Community Admin
It appears to be related to the <Configurations> and <Platforms>, but those should have defaults in VS2017.
See project-system/configurations.md at master · dotnet/project-system · GitHub. -
I found a solution. Run a build batch and select only release configuration (select all needed dependencies and Rust). If you get an error of "UnauthorizedAccess", you have to edit a line of "Rust.csproj":
Code:<Exec Command="powershell -ExecutionPolicy Unrestricted $(SolutionDir)Steam.ps1 -project $(AssemblyName) -dotnet $(TargetFramework) -appid $(SteamAppId) -branch $(SteamBranch) -managed $(ManagedDir)" />
Code:<Exec Command="powershell -ExecutionPolicy Bypass $(SolutionDir)Steam.ps1 -project $(AssemblyName) -dotnet $(TargetFramework) -appid $(SteamAppId) -branch $(SteamBranch) -managed $(ManagedDir)" />
-
I have same kind of problems. I'm running the released MSVC 2017. I can open other MSVC 2015 projects I have in MSVC 2017 without errors.
Using the OxideMod master branch, I get this error when opening it in MSVC 2017:
Code:Problem signature: Problem Event Name: Dev11NonFatalError AppName: devenv.exe AppVer: 15.0.27004.2005 AppStamp: 59e69397 AsmAndModName: Microsoft.VisualStudio.Validation AsmVer: 15.3.15.16354 ModStamp: cdeef569 MethodDef: 29 Offset: 58 ExceptionType: System.ArgumentException Component: CPS OS Version: 6.3.9600.2.0.0.272.7 Locale ID: 1033Read our privacy statement online: http://go.microsoft.com/fwlink/?linkid=280262If the online privacy statement is not available, please read our privacy statement offline: C:\Windows\system32\en-US\erofflps.txt
UPDATE:
After making the change to rust.proj suggested by Frenk92 (even though I had no access denied message), I was able to start the Rust build but it failed with the errors:
Code:Severity Code Description Project File Line Suppression State Error The system cannot find the file specified. Rust C:\GitHub\serverside\Oxide\Games\Oxide.Rust\EXEC 1
Code:Severity Code Description Project File Line Suppression State Error MSB3073 The command "powershell -ExecutionPolicy Bypass C:\GitHub\serverside\Oxide\Steam.ps1 -project Oxide.Rust -dotnet net35 -appid 258550 -branch public -managed RustDedicated_Data\Managed" exited with code 1. Rust C:\GitHub\serverside\Oxide\Games\Oxide.Rust\Rust.csproj 108
Last edited by a moderator: Oct 21, 2017 -
Wulf Community Admin
-
That's probably a good idea. I saw something like that in the PS script. I'm reading through it to see where the fail is for my side.
UPDATE:
I ran the powershell command outside of MSVC but from within the Oxide.Rust directory:
Code:Getting references for public branch of 258550 Determining latest release of DepotDownloader Dowloading version 2.2.2 of DepotDownloader Invoke-WebRequest : Parameter cannot be processed because the parameter name 'Out' is ambiguous. Possible matches include: -OutFile -OutVariable -OutBuffer. At C:\GitHub\serverside\Oxide\Steam.ps1:50 char:64 + Invoke-WebRequest $json.assets[0].browser_download_url -Out "$depot_dir\ ... + ~~~~ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], Parame terBindingException + FullyQualifiedErrorId : AmbiguousParameter,Microsoft.PowerShell.Commands .InvokeWebRequestCommandExtracting DepotDownloader release files Expand-Archive : The term 'Expand-Archive' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\GitHub\serverside\Oxide\Steam.ps1:52 char:9 + Expand-Archive "$depot_dir\$release_zip" -DestinationPath $depot_dir -Fo ... + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Expand-Archive:String) [], Comm andNotFoundException + FullyQualifiedErrorId : CommandNotFoundExceptionCould not start or complete DepotDownloader process This command cannot be run due to the error: The system cannot find the file spe cified.
Last edited by a moderator: Oct 21, 2017 -
Wulf Community Admin
-
Upgrading to PS5 fixed the depot downloading thing. I still have the 2 MSVC startup errors and it won't build the whole solution by right-clicking. I get
Code:========== Rebuild All: 0 succeeded, 0 failed, 17 skipped ==========
-
Code:
Error MSB3073 The command "powershell -ExecutionPolicy Unrestricted D:\Games\Rust\Oxide\Steam.ps1 -project Oxide.Rust -dotnet net35 -appid 258550 -branch public -managed RustDedicated_Data\Managed" exited with code 1. Rust D:\Games\Rust\Oxide\Games\Oxide.Rust\Rust.csproj 108
Running script outside of the VS says that it COuld not find a .csproj file for Rust... -
Wulf Community Admin
-
With a batch build everythins compiles, but rust... dafuq is this...
[DOUBLEPOST=1508590584][/DOUBLEPOST]
[DOUBLEPOST=1508590692][/DOUBLEPOST]Yep. it's downloading it right now. The problem was simple - i didn't have IE setup correctly =) -
Wulf Community Admin
-
Finally! Seems that the batch build do the trick.... I have no idea what the problem can be....
[DOUBLEPOST=1508590904][/DOUBLEPOST]Code:========== Build: 7 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Code:1>------ Skipped Build: Project: References ------ 1> 2>------ Skipped Build: Project: Core ------ 2> 3>------ Skipped Build: Project: CSharp ------ 3> 4>------ Skipped Build: Project: SQLite ------ 4> 5>------ Skipped Build: Project: Lua ------ 5> 6>------ Skipped Build: Project: MySql ------ 6> 7>------ Skipped Build: Project: Unity (Extensions\Unity) ------ 7> 8>------ Skipped Build: Project: JavaScript ------ 8> 9>------ Skipped Build: Project: Python ------ 9> 10>------ Skipped Build: Project: Blackwake ------ 10> 11>------ Skipped Build: Project: Hurtworld ------ 11> 12>------ Skipped Build: Project: MedievalEngineers ------ 12> 13>------ Skipped Build: Project: ReignOfKings ------ 13> 14>------ Skipped Build: Project: Rust ------ 14> 15>------ Skipped Build: Project: SavageLands ------ 15> 16>------ Skipped Build: Project: SpaceEngineers ------ 16> 17>------ Skipped Build: Project: TheForest ------ 17> ========== Build: 0 succeeded or up-to-date, 0 failed, 17 skipped ==========
-
I get the same skipped versions. And if I try to build the entire OxideMod, even as batched, it just hangs on everything but rust. I suspect we need to make the same change to the *.csproj for all games as was made to the Rust one to get it to batch build. We're on a wild ride.
-
Should we be working this as an issue on Github? I don't mind moving the discussion there
-
Wulf Community Admin