From ac8ac51a0046d5a6885d57f494712b7b3ba507bd Mon Sep 17 00:00:00 2001 From: Nice3point Date: Wed, 3 Jan 2024 01:14:08 +0300 Subject: [PATCH] Msbuild char excape --- Changelog.md | 21 ++++++++++++------- Readme.md | 4 ---- build/Build.Pack.cs | 7 ++++++- .../Nice3point.Revit.Toolkit.csproj | 4 ++-- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/Changelog.md b/Changelog.md index 3ba0591..c393d8b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,17 +1,22 @@ # Release 2024.0.1 -- New **Context** class. Provides computed properties to retrieve Revit objects in the current session. +- New **Context** class. + + Provides computed properties to retrieve Revit objects in the current session. Values are provided even outside the Revit context. + + - Context.UiApplication; + - Context.Application; + - Context.UiDocument; + - Context.Document; + - Context.ActiveView; + - Context.ActiveGraphicalView; + - Context.ActiveView; ```C# - var user = Context.Application.Username; - var title = Context.Document.Title; + Context.Document.Create.NewFamilyInstance(); Context.ActiveView = view; ``` - Supported properties: UiApplication, Application, UiDocument, Document, ActiveView, ActiveGraphicalView. - - Values are provided even outside the Revit context. - - New **FrameworkElementCreator**. Creates FrameworkElements for the dock pane. ```C# @@ -23,7 +28,7 @@ data.FrameworkElementCreator = new FrameworkElementCreator(); }); ``` - Available overloading with IServiceProvider, in case you use hosting. + Available overloading with IServiceProvider, in case you use hosting. - **ResolveHelper** reworked. Now you need to specify a type to resolve dependencies. The directory where the type is defined will be used to search for dependencies. diff --git a/Readme.md b/Readme.md index d85198b..13138bf 100644 --- a/Readme.md +++ b/Readme.md @@ -341,15 +341,11 @@ Provides computed properties to retrieve Revit objects in the current session. V - Context.ActiveGraphicalView; - Context.ActiveView; -Example: - ```C# Context.Document.Create.NewFamilyInstance(); Context.ActiveView = view; ``` - - ### Options Toolkit provides implementation of various Revit interfaces, with the possibility of customization. diff --git a/build/Build.Pack.cs b/build/Build.Pack.cs index be5f101..85904e4 100644 --- a/build/Build.Pack.cs +++ b/build/Build.Pack.cs @@ -34,6 +34,11 @@ string CreateNugetChangelog() var changelog = BuildChangelog(); Assert.True(changelog.Length > 0, $"No version entry exists in the changelog: {Version}"); - return changelog.ToString(); + return EscapeMsBuild(changelog.ToString()); + } + + static string EscapeMsBuild(string value) + { + return value.Replace(";", "%3B").Replace(",", "%2C"); } } \ No newline at end of file diff --git a/source/Nice3point.Revit.Toolkit/Nice3point.Revit.Toolkit.csproj b/source/Nice3point.Revit.Toolkit/Nice3point.Revit.Toolkit.csproj index e5043b5..f7b87b1 100644 --- a/source/Nice3point.Revit.Toolkit/Nice3point.Revit.Toolkit.csproj +++ b/source/Nice3point.Revit.Toolkit/Nice3point.Revit.Toolkit.csproj @@ -83,8 +83,8 @@ - - + + \ No newline at end of file