Visual Studio 19 Support?

Hi All,

I'm looking to get started in mod making for Rust.

I've followed the instructions here https://github.com/theumod/uMod.Rust

As title suggests I am using Visual Studio 2019 (Preview 2)

I currently can't build.

Error is: The command "powershell -ExecutionPolicy Bypass "C:\GitHub Repos\umod\umod.Rust\\Steam.ps1" -project uMod.Rust -dotnet net46 -appid 258550 -branch 'public' -managed 'RustDedicated_Data\Managed'" exited with code 1.

I've Googled and set powershell Bypass permission so that it should be avble to run. but no joy.

Is it simple Visual Studio 19 (not supported yet), or is there something i can do?

I'm on a fresh install (up to date) version of Win10 and do not wish to install Visual Studio 17 (although i have the build tools).

Looking for advice.

Thank you all

King

Yes, it supports Visual Studio 2019, I build with it. The error means that the Steam.ps1 script failed for some reason.

The question is though, why are you trying to compile it? You do not need to complile it to develop plugins. Simple add references to the DLLs you want, either locally or using our myget.org NuGet. https://github.com/theumod/uMod.Rust/blob/develop/nuget.config

Thanks for the quick reply.

To be honest, I'm just curious and wanted to look at the code and see how she fares (which i can do, but just tried to build it).

Thanks for the link, I'll be sure to check it out.

In the meantime (and i do not wish to take anymore of your time). Any idea's on why i can't compile?

Thanks in advance

King


Merged post

Some success. In an effort to get this to build. I ran the build and set the verbosity to detailed. Which quickly revealled that it was failing to run due to it being un-able to path / find the location to which i had it set.

I'm lead to believe that perhaps because the repo location had a [space] in it 'C:\GitHub Repos\uMod.Rust' is wasn't running, but i cannot confirm.

Moving the repo to another location and re-cloning from the same source yeilded successful results, and theps1 script was able to run.

However, I'm now faced with another problem. The problem is indeed that it cannot find the required assemblies in order to build.

Please see link with images of the solution, and the build output.

Images

Any idea on why that might be the case?

Thanks in advance.

King

The assemblies are downloaded from Steam when you first build it. You’d need to build it twice for it to find them.
In response to Wulf ():
The assemblies are downloaded from Steam when you first build it. You’d need to build it twice for i...

When checking the final destination of these dependancies i could see the folder was blank, so it wasn't was running right still.

So i took a look at the ps1 script and open it.

I was getting an error about internet explorer of all things.

Error: "The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again"

Stackoverflow put me in the right direction.

I added the param to the Invoke Webrequest and saved the ps1 script down and ran it again.

It now runs and gets further than its ever gotten. I can now see that is has download the assemblies from Steam, but i am not out of the woods yet. It's now compaining about a GunTrap::CheckTrigger in asembly Assembly-CSharp.dll

Please see my image evidence, and latest error.

 

Love if anyone has any more thoughts, it's been quite the interesting journey so far.

 

Secondly I am aware of the new rust update messing around with many things here, so if these new errors are related to that, and i should simple leave this alone until you guys have resolved your issues then i understand completely. I just curious, and stubborn and would like it to build.

Thanks in advance 
King

 

 

Looks fine there. I’ll make the change to the script though to avoid that in the future. The hook you mentioned is disabled, which is why it isn’t being used and why you are seeing that.