Fixed the bad csprojects so both can build just fine, and cleaned up unused usings
This commit is contained in:
parent
99ba6e1710
commit
f1a4ea0a65
@ -7,12 +7,12 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="src\CogwheelLib.csproj" />
|
||||
<Compile Remove="obj\Release\net9.0\CogwheelLib.GlobalUsings.g.cs" />
|
||||
<Compile Remove="obj\Release\net9.0\CogwheelLib.AssemblyInfo.cs" />
|
||||
<Compile Remove="obj\**\*.AssemblyAttributes.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -1,9 +1,12 @@
|
||||
// Program.cs
|
||||
|
||||
using System.Reflection;
|
||||
using Cogwheel;
|
||||
|
||||
ICogwheelConsole cogwheelConsole = new DeafultCogwheelConsole();
|
||||
CommandsManager commandsManager = new CommandsManager();
|
||||
|
||||
commandsManager.AddAssembly(Assembly.GetExecutingAssembly());
|
||||
|
||||
COGWHEEL.Initialize(commandsManager, cogwheelConsole);
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace Cogwheel;
|
||||
|
||||
/// <summary>
|
||||
@ -7,6 +10,8 @@ public static class COGWHEEL
|
||||
{
|
||||
private static CommandsManager _commandsManager;
|
||||
private static ICogwheelConsole _console;
|
||||
|
||||
public static bool UseBuiltInCommands { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the Cogwheel system
|
||||
|
@ -6,9 +6,8 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
|
||||
<Version>1.2.0</Version>
|
||||
<Authors>Chris Bell</Authors>
|
||||
@ -23,8 +22,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="obj\Release\net9.0\CogwheelLib.GlobalUsings.g.cs" />
|
||||
<Compile Remove="obj\Release\net9.0\CogwheelLib.AssemblyInfo.cs" />
|
||||
<Compile Remove="obj\**\*.AssemblyAttributes.cs" />
|
||||
<None Include="changelog.md" Pack="true" PackagePath="" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
using System;
|
||||
|
||||
namespace Cogwheel;
|
||||
|
||||
/// <summary>
|
||||
|
@ -1,3 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
Loading…
Reference in New Issue
Block a user