Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup generated and dependencies #95

Merged
merged 6 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions EDSEditorGUI/EDSEditorGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="SourceGrid" Version="4.4.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>git describe --tags --long --dirty &gt; "$(MSBuildProjectDirectory)\version.txt" || exit 0</PreBuildEvent>
Expand Down
13 changes: 0 additions & 13 deletions EDSEditorGUI/EDSEditorGUI.csproj.user

This file was deleted.

4 changes: 0 additions & 4 deletions EDSSharp/EDSSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@
<ItemGroup>
<ProjectReference Include="..\libEDSsharp\libEDSsharp.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
</ItemGroup>
</Project>
7 changes: 0 additions & 7 deletions EDSSharp/EDSSharp.csproj.user

This file was deleted.

34 changes: 0 additions & 34 deletions libEDSsharp/CanOpenNodeExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
namespace libEDSsharp
{

public class CanOpenNodeExporter : IExporter

Check warning on line 35 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter'
{

private string folderpath;
private string gitVersion;
protected EDSsharp eds;

Check warning on line 40 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter.eds'

private int enabledcount = 0;

Expand All @@ -54,7 +54,7 @@
ODentry maxTXmappingsOD=null;


public void prepareCanOpenNames()

Check warning on line 57 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter.prepareCanOpenNames()'
{
acceptable_canopen_names.Add(0x101800, "identity");

Expand Down Expand Up @@ -85,7 +85,7 @@
}


public void export(string folderpath, string filename, string gitVersion, EDSsharp eds,string odname)

Check warning on line 88 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter.export(string, string, string, EDSsharp, string)'
{
this.folderpath = folderpath;
this.gitVersion = gitVersion;
Expand Down Expand Up @@ -161,7 +161,7 @@
}
}

public bool ObjectActive(UInt16 index)

Check warning on line 164 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter.ObjectActive(ushort)'
{
if (eds.ods.ContainsKey(index))
{
Expand All @@ -170,7 +170,7 @@
else return false;
}

protected void prewalkArrays()

Check warning on line 173 in libEDSsharp/CanOpenNodeExporter.cs

View workflow job for this annotation

GitHub Actions / build

Missing XML comment for publicly visible type or member 'CanOpenNodeExporter.prewalkArrays()'
{

foreach (KeyValuePair<UInt16, ODentry> kvp in eds.ods)
Expand Down Expand Up @@ -1314,40 +1314,6 @@
}
}

public static string ParseString(string input)
{
var provider = new Microsoft.CSharp.CSharpCodeProvider();
var parameters = new System.CodeDom.Compiler.CompilerParameters()
{
GenerateExecutable = false,
GenerateInMemory = true,
};

var code = @"
namespace Tmp
{
public class TmpClass
{
public static string GetValue()
{
return """ + input + @""";
}
}
}";

var compileResult = provider.CompileAssemblyFromSource(parameters, code);

if (compileResult.Errors.HasErrors)
{
throw new ArgumentException(compileResult.Errors.Cast<System.CodeDom.Compiler.CompilerError>().First(e => !e.IsWarning).ErrorText);
}

var asmb = compileResult.CompiledAssembly;
var method = asmb.GetType("Tmp.TmpClass").GetMethod("GetValue");

return method.Invoke(null, null) as string;
}

protected string make_cname(string name,ODentry entry)
{
if (name == null)
Expand Down
Loading
Loading