Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
07fdccd
Convert build files to use net6.0
mdickson Aug 11, 2022
607c8f0
add == and != overloads to osutf8 and osutf8slice
UbitUmarov Aug 17, 2022
233b467
add a few things we may need
UbitUmarov Aug 17, 2022
6fa5bc9
add runprebuild48.* to build as .net4.8
UbitUmarov Aug 24, 2022
d9ab33a
Create dotnet.yml
UbitUmarov Aug 24, 2022
6ea3fe9
Update dotnet.yml
UbitUmarov Aug 24, 2022
6b4d548
Update dotnet.yml
UbitUmarov Aug 24, 2022
4bb98d0
Merge branch 'master' of https://github.com/UbitUmarov/libopenmetaverse
UbitUmarov Aug 24, 2022
12e11d3
Update dotnet.yml
UbitUmarov Aug 24, 2022
304d478
update Prebuild.exe
UbitUmarov Aug 24, 2022
5d661b5
Merge branch 'master' of https://github.com/UbitUmarov/libopenmetaverse
UbitUmarov Aug 24, 2022
cb8f012
Update dotnet.yml
UbitUmarov Aug 25, 2022
be1265b
Update dotnet.yml
UbitUmarov Aug 25, 2022
8c63005
Update dotnet.yml
UbitUmarov Aug 25, 2022
f47129d
Update dotnet.yml
UbitUmarov Aug 25, 2022
845673e
add a few minor things we may need
UbitUmarov Aug 25, 2022
d12611b
Merge branch 'master' of https://github.com/UbitUmarov/libopenmetaverse
UbitUmarov Aug 25, 2022
993df0a
update license
UbitUmarov Aug 25, 2022
d40f279
Update dotnet.yml
UbitUmarov Aug 26, 2022
d466fa7
Create irc.yml
UbitUmarov Aug 27, 2022
0a6e443
Update irc.yml
UbitUmarov Aug 27, 2022
1e2f80d
Update irc.yml
UbitUmarov Aug 27, 2022
a747b6d
Update irc.yml
UbitUmarov Aug 27, 2022
2a041cc
add unsafe UUID.ToBytes
UbitUmarov Aug 27, 2022
f4ffd9f
Merge branch 'master' of https://github.com/UbitUmarov/libopenmetaverse
UbitUmarov Aug 27, 2022
80c2d45
Update irc.yml
UbitUmarov Aug 27, 2022
e43299a
add unsafe Vector3.ToBytes
UbitUmarov Aug 27, 2022
e345ae8
Update irc.yml
UbitUmarov Aug 27, 2022
0756778
Update dotnet.yml
UbitUmarov Aug 27, 2022
8e67a67
Update dotnet.yml
UbitUmarov Aug 27, 2022
3d6f168
Update dotnet.yml
UbitUmarov Aug 27, 2022
1d89b85
Update dotnet.yml
UbitUmarov Aug 27, 2022
c94cb9b
Update dotnet.yml
UbitUmarov Aug 27, 2022
2d16f9f
Delete irc.yml
UbitUmarov Aug 27, 2022
22a93b3
add a few more unsafe ToBytes*
UbitUmarov Aug 28, 2022
75ce0c0
a few more minor changes
UbitUmarov Aug 28, 2022
24a90c7
add a float to ushort pre clamped to range 0,1
UbitUmarov Aug 29, 2022
e411534
Merge remote-tracking branch 'upstream/master' into feature/net6
mdickson Sep 7, 2022
a0f4609
Settings to port to net6
mdickson Sep 7, 2022
171a9e0
Target windows only net6 for apps that use SystemForms.
mdickson Sep 7, 2022
94d321d
Target net6 in general. For a few of the executable programs that us…
mdickson Sep 14, 2022
c7cc50e
try to detect new caps with more complex urls
UbitUmarov Sep 22, 2022
28b4ed1
Minor changes for net6 compat
mdickson Nov 1, 2022
2bed8b3
create a branch for dotnet 6-7, and add basic changes for it (still f…
UbitUmarov Nov 25, 2022
4a4d0a7
some more changes. Many projects will only compile on and for windows…
UbitUmarov Nov 25, 2022
79f29fd
add some SSE code
UbitUmarov Nov 25, 2022
de3c2d5
use some ugly unsafe.as.... anti bounds check hack
UbitUmarov Nov 25, 2022
351da86
add a bit more simd
UbitUmarov Nov 26, 2022
9141829
put back Guid field on UUID. This is not nice, but opensim serializer…
UbitUmarov Dec 6, 2022
4015ac2
a bit more simd on uuid
UbitUmarov Dec 6, 2022
cd1811c
a bit more simd on quaternion ( plus some missing changes on prev commit
UbitUmarov Dec 6, 2022
19c7fac
Merge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Dec 18, 2022
f666664
on uuid.tryparse only allow spaces after the uuid. This is currently …
UbitUmarov Jan 25, 2023
fe89128
Merge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Jan 26, 2023
b35df8a
Merge upstream throught 1/26
mdickson Jan 26, 2023
e0fd3e4
add missing file
UbitUmarov Jan 26, 2023
a5d9842
xMerge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Jan 27, 2023
18f53dd
add vector3.Unit?Rotated(rot) ?=x,y,x
UbitUmarov Feb 15, 2023
a1846b8
Merge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Mar 1, 2023
fe8fddf
several changes...
UbitUmarov Mar 13, 2023
39cd5ee
fix merge issues
UbitUmarov Mar 14, 2023
6e2b92c
Merge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Mar 24, 2023
0bd6040
Update from upstream. Also zot some old dlls in favor of packages fro…
mdickson Mar 27, 2023
bfc47e7
GitHub actions for publishing
mdickson Apr 7, 2023
8d00233
Update build actions and add code scanning
mdickson Apr 7, 2023
6ae81b2
GitHub actions to make release build
mdickson Apr 7, 2023
8d58e02
some more cosmetic changes on structured data
UbitUmarov Jun 17, 2023
70f31cd
fix a typo on prebuild.xml
UbitUmarov Jun 18, 2023
5f0ec0f
update prebuild binaries
UbitUmarov Jun 18, 2023
0c3649b
add some comçilation json files
UbitUmarov Jun 18, 2023
f0ac229
update a few libs
UbitUmarov Jun 18, 2023
5513a47
Merge remote-tracking branch 'upstream/dotnet6' into feature/net6
mdickson Jun 19, 2023
e8a4e76
fix xml apos escape; some changes on wingridproxy
UbitUmarov Aug 1, 2023
d5a9e25
Merge with upstream through 8/11/2023
mdickson Aug 11, 2023
e8e7b85
Upstream changes to programs
mdickson Aug 11, 2023
db64cd0
Update CI to try and push NUGet packages on update
mdickson Aug 11, 2023
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
34 changes: 34 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '40 14 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: [ 'csharp' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
37 changes: 32 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: .NET
on:
push:
branches: [ develop ]

pull_request:
branches: [ develop ]

Expand All @@ -12,14 +13,40 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: 5.0.x
dotnet-version: 6.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore -p:Configuration=Release

- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet test --no-restore --no-build --verbosity normal

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Pack
run: dotnet pack -p:Configuration=Release NGC.LibOpenMetaverse

- name: Publish Package
run: dotnet nuget push build/Release/*.nupkg --source https://nuget.pkg.github.com/OpenSim-NGC/index.json

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.bump_version.outputs.new_tag }}
release_name: Release ${{ github.ref }}
body: ${{ steps.tag_version.outputs.changelog }}

2 changes: 1 addition & 1 deletion CSJ2K/CSJ2K.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<TargetFramework>net48</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyTitle>CSJ2K</AssemblyTitle>
<Product>CSJ2K</Product>
<Description>JPEG2000 decoding library</Description>
Expand Down
22 changes: 16 additions & 6 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
<Project>

<PropertyGroup>
<Version>0.10.0.0</Version>
<Product>OpenMetaverse</Product>
<Authors>Utopa Skye LLC, OpenMetaverse Developers</Authors>
<Company>Utopia Skye LLC</Company>
</PropertyGroup>
<PackageVersion>1.3.1</PackageVersion>
<AssemblyVersion>1.3.1</AssemblyVersion>
<FileVersion>1.3.1</FileVersion>
<Version>1.3.1</Version>
</PropertyGroup>

<PropertyGroup>
<PackageVersion>1.1.8</PackageVersion>
<AssemblyVersion>1.1.7</AssemblyVersion>
<FileVersion>1.1.7</FileVersion>
<Version>1.1.7</Version>
<PackageDescription>LibOpenMetaverse is an OpenSim Core compatible Open Metaverse support library</PackageDescription>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/OpenSim-NGC/libopenmetaverse</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>OMV OpenMetaverse OpenSim Halcyon OpenMetaverseFoundation VirtualWorld VirtualReality 3D SecondLife</PackageTags>
<RepositoryUrl>https://github.com/OpenSim-NGC/libopenmetaverse.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>master</RepositoryBranch>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<PropertyGroup>
<MSBuildProjectExtensionsPath>$(SolutionDir)\obj\$(Configuration)\$(MSBuildProjectName)\</MSBuildProjectExtensionsPath>
<IntermediateOutputPath>$(SolutionDir)\obj\$(Configuration)\$(MSBuildProjectName)\</IntermediateOutputPath>
<OutputPath>$(SolutionDir)\build\$(Configuration)\$(AssemblyName)\</OutputPath>
<OutDir>$(OutputPath)</OutDir>
</PropertyGroup>
</Project>
3 changes: 3 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

Copyright (c) Opensimulator, http://opensimulator.org/
All rights reserved.

Copyright (c) 2006-2016, openmetaverse.co
All rights reserved.

Expand Down
10 changes: 5 additions & 5 deletions OpenMetaverse.GUI/AvatarList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ public AvatarList()
this.ListViewItemSorter = _ColumnSorter;

EventHandler clickHandler = new EventHandler(defaultMenuItem_Click);
this.ContextMenu = new ContextMenu();
this.ContextMenu.MenuItems.Add("Offer Teleport", clickHandler);
this.ContextMenu.MenuItems.Add("Teleport To", clickHandler);
this.ContextMenu.MenuItems.Add("Walk To", clickHandler);
this.ContextMenuStrip = new ContextMenuStrip();
this.ContextMenuStrip.Items.Add("Offer Teleport", null, clickHandler);
this.ContextMenuStrip.Items.Add("Teleport To", null, clickHandler);
this.ContextMenuStrip.Items.Add("Walk To", null, clickHandler);

this.DoubleBuffered = true;
this.ListViewItemSorter = _ColumnSorter;
Expand Down Expand Up @@ -360,7 +360,7 @@ private void UpdateCoarseInfo(Simulator sim, List<UUID> newEntries, List<UUID> r

private void defaultMenuItem_Click(object sender, EventArgs e)
{
MenuItem menuItem = (MenuItem)sender;
ToolStripItem menuItem = (ToolStripItem)sender;

switch (menuItem.Text)
{
Expand Down
12 changes: 6 additions & 6 deletions OpenMetaverse.GUI/InventoryTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ namespace OpenMetaverse.GUI
public class InventoryTree : TreeView
{
private GridClient _Client;
private ContextMenu _ContextMenu;
private ContextMenuStrip _ContextMenu;
private UUID _SelectedItemID;

/// <summary>
/// Gets or sets the context menu associated with this control
/// </summary>
public ContextMenu Menu
public ContextMenuStrip Menu
{
get { return _ContextMenu; }
set { _ContextMenu = value; }
Expand All @@ -65,9 +65,9 @@ public GridClient Client
public InventoryTree()
{
EventHandler clickHandler = new EventHandler(defaultMenuItem_Click);
_ContextMenu = new ContextMenu();
_ContextMenu.MenuItems.Add("Wear", clickHandler);
_ContextMenu.MenuItems.Add("Detach", clickHandler);
_ContextMenu = new ContextMenuStrip();
_ContextMenu.Items.Add("Wear", null, clickHandler);
_ContextMenu.Items.Add("Detach", null, clickHandler);

this.NodeMouseClick += new TreeNodeMouseClickEventHandler(InventoryTree_NodeMouseClick);
this.BeforeExpand += new TreeViewCancelEventHandler(InventoryTree_BeforeExpand);
Expand Down Expand Up @@ -172,7 +172,7 @@ private void InitializeClient(GridClient client)

private void defaultMenuItem_Click(object sender, EventArgs e)
{
MenuItem menuItem = (MenuItem)sender;
ToolStripItem menuItem = (ToolStripItem)sender;

InventoryItem item = (InventoryItem)Client.Inventory.Store[_SelectedItemID];

Expand Down
8 changes: 2 additions & 6 deletions OpenMetaverse.GUI/OpenMetaverse.GUI.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<TargetFrameworks>net48</TargetFrameworks>
<TargetFramework>net6.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<NoWarn>1591,1574,0419,0618</NoWarn>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="System.Windows.Forms">
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OpenMetaverse.Types\OpenMetaverse.Types.csproj" />
<ProjectReference Include="..\OpenMetaverse\OpenMetaverse.csproj" />
Expand Down
4 changes: 2 additions & 2 deletions OpenMetaverse.PrimMesher/OpenMetaverse.PrimMesher.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<TargetFrameworks>net6.0</TargetFrameworks>
<Authors>Dhalia Trimble, OpenSim Contributors, Cinder Roxley</Authors>
<Product>OpenMetaverse.PrimMesher</Product>
<PackageId>OpenMetaverse.PrimMesher</PackageId>
Expand All @@ -15,6 +15,6 @@
<DefineConstants>TRACE;VERTEX_INDEXER</DefineConstants>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<TargetFrameworks>net48</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<NoWarn>1591,1574,0419,0618</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<TargetFrameworks>net48</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<NoWarn>1591,1574,0419,0618</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down
2 changes: 0 additions & 2 deletions OpenMetaverse.StructuredData/JSON/OSDJson.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using System.Globalization;
using System.IO;
using System.Text;
using LitJson;
using OpenMetaverse;

namespace OpenMetaverse.StructuredData
{
Expand Down
2 changes: 1 addition & 1 deletion OpenMetaverse.StructuredData/LLSD/NotationLLSD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ private static OSD DeserializeLLSDNotationElement(TextReader reader)
if (reader.Read(uuidBuf, 0, 36) < 36)
throw new OSDException("Notation LLSD parsing: Unexpected end of stream in UUID.");
UUID lluuid;
if (!UUID.TryParse(new String(uuidBuf), out lluuid))
if (!UUID.TryParse(new String(uuidBuf).AsSpan(), out lluuid))
throw new OSDException("Notation LLSD parsing: Invalid UUID discovered.");
osd = OSD.FromUUID(lluuid);
break;
Expand Down
24 changes: 11 additions & 13 deletions OpenMetaverse.StructuredData/LLSD/XmlLLSD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static void EscapeToXML(string s, StringBuilder sb)
case '"':
sb.Append("&quot;");
break;
case '\\':
case '\'':
sb.Append("&apos;");
break;
default:
Expand Down Expand Up @@ -295,7 +295,7 @@ public static void EscapeASCIIToXML(osUTF8 ms, string s)
case '"':
ms.Append(osUTF8Const.XMLamp_quot);
break;
case '\\':
case '\'':
ms.Append(osUTF8Const.XMLamp_apos);
break;
default:
Expand Down Expand Up @@ -325,7 +325,7 @@ public static void EscapeToXML(osUTF8 ms, string s)
case '"':
ms.Append(osUTF8Const.XMLamp_quot);
break;
case '\\':
case '\'':
ms.Append(osUTF8Const.XMLamp_apos);
break;
default:
Expand Down Expand Up @@ -355,7 +355,7 @@ public static void EscapeToXML(osUTF8 ms, osUTF8 s)
case (byte)'"':
ms.Append(osUTF8Const.XMLamp_quot);
break;
case (byte)'\\':
case (byte)'\'':
ms.Append(osUTF8Const.XMLamp_apos);
break;
default:
Expand Down Expand Up @@ -636,8 +636,7 @@ private static OSD ParseLLSDXmlElement(XmlTextReader reader)

if (reader.Read())
{
int value = 0;
Int32.TryParse(reader.ReadString().Trim(), out value);
Int32.TryParse(reader.ReadString().Trim(), out int value);
ret = OSD.FromInteger(value);
break;
}
Expand All @@ -653,7 +652,7 @@ private static OSD ParseLLSDXmlElement(XmlTextReader reader)

if (reader.Read())
{
double value = 0d;
double value;
string str = reader.ReadString().Trim().ToLower();

if (str == "nan")
Expand All @@ -676,8 +675,7 @@ private static OSD ParseLLSDXmlElement(XmlTextReader reader)

if (reader.Read())
{
UUID value = UUID.Zero;
UUID.TryParse(reader.ReadString().Trim(), out value);
UUID.TryParse(reader.ReadString().AsSpan(), out UUID value);
ret = OSD.FromUUID(value);
break;
}
Expand All @@ -693,12 +691,12 @@ private static OSD ParseLLSDXmlElement(XmlTextReader reader)

if (reader.Read())
{
DateTime value = Utils.Epoch;
DateTime.TryParse(reader.ReadString().Trim(), out value);
ret = OSD.FromDate(value);
if(DateTime.TryParse(reader.ReadString().Trim(), out DateTime value))
ret = OSD.FromDate(value);
else
ret = OSD.FromDate(Utils.Epoch);
break;
}

ret = OSD.FromDate(Utils.Epoch);
break;
case "string":
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<TargetFrameworks>net48;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net6.0</TargetFrameworks>
<NoWarn>1591,1574,0419,0618</NoWarn>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand All @@ -12,4 +12,4 @@
<ItemGroup>
<ProjectReference Include="..\OpenMetaverse.Types\OpenMetaverse.Types.csproj" />
</ItemGroup>
</Project>
</Project>
Loading