Skip to content

Commit

Permalink
Msbuild char excape
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Jan 2, 2024
1 parent 352ae04 commit ac8ac51
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
21 changes: 13 additions & 8 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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#
Expand All @@ -23,7 +28,7 @@
data.FrameworkElementCreator = new FrameworkElementCreator<DockPaneView>();
});
```
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.

Expand Down
4 changes: 0 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion build/Build.Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
</ItemGroup>

<ItemGroup>
<None Include="..\.nuget\PackageIcon.png" Link="NuGet\PackageIcon.png" PackagePath="images\" Pack="true"/>
<None Include="..\License.md" Link="NuGet\License.md" PackagePath="" Pack="true"/>
<None Include="..\..\.nuget\PackageIcon.png" Link="NuGet\PackageIcon.png" PackagePath="images\" Pack="true"/>
<None Include="..\..\License.md" Link="NuGet\License.md" PackagePath="" Pack="true"/>
</ItemGroup>

</Project>

0 comments on commit ac8ac51

Please sign in to comment.