NuclearPowered / Reactor

Modding api for Among Us
https://reactor.gg
GNU Lesser General Public License v3.0
225 stars 43 forks source link

Error While Building Mod #68

Closed RealLakshyaK2011 closed 1 year ago

RealLakshyaK2011 commented 1 year ago

Hi, I Installed Reactor.Template from command line and when used dotnet new reactor -n NameOfYourPlugin, it made the mod for Reactor 2.0.0 but currently latest is 2.1.0, When I Manually changed The Reactor Version In .csproject file, It Shows Error While Building Here's The LOG OUTPUT:

MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102: Unable to find package Re
actor with version (>= 2.1.0) [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 4 version(s) in
 nuget.org [ Nearest version: 2.0.0 ] [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 0 version(s) in
 BepInEx [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
  Failed to restore E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj (in 1.89 sec).

Build FAILED.

E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102: Unable to find package Re
actor with version (>= 2.1.0) [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 4 version(s) in
 nuget.org [ Nearest version: 2.0.0 ] [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 0 version(s) in
 BepInEx [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.59

Thanks,

TianMengLucky commented 1 year ago

The possible cause is that Reactor v2.1.0 was not uploaded to Nuget, requiring a local manual reference