Skip to content

Commit

Permalink
Disable EnsureApsUserHaveOpenId
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Nov 23, 2023
1 parent eb36eff commit 437eb40
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 6 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.2.1] / 2023-11-21
## [1.2.1] / 2023-11-21 - 2023-11-22
### Features
- Support `net7.0-windows` for Revit 2025.
### Application
- Add `EnsureApsUserHaveOpenId` to make sure `OpenId` has data. - Not working
- Add `EnsureApsUserHaveOpenId` to make sure `OpenId` has data.
- Disable `EnsureApsUserHaveOpenId`, not working `OpenId` is null after `Refresh`.
- Update `OpenFile` in `Log`.
- Update `net7.0-windows` for Revit 2025.
- Update `csproj`.
### Shared
Expand All @@ -17,11 +19,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Update `net7.0-windows` framework.
- Update `csproj`.
- Update `MarshalUtils` in `net7.0`
- Update `RevitTestUtils` with `hiddenRevitArgument`
### Build
- Update `net48` and `net7.0-windows` console zip.
### TestAdapter
- Select resource console zip for NetFramework and NetCore.
- Update `ResourceConsoleUtils`
- Update `RevitTestConsole` to remove `+` in FileInfo.
### Warning
- Ignore `Newtonsoft.Json` warning in `Application` project.

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.2.1-alpha.1</Version>
<Version>1.2.1-alpha</Version>
</PropertyGroup>
</Project>
4 changes: 4 additions & 0 deletions ricaun.RevitTest.Application/Revit/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ TestAssemblyModel ApsApplicationCheckTest(UIApplication uiapp)
if (Autodesk.Revit.ApplicationServices.Application.IsLoggedIn == false)
{
var exceptionNeedLoggedIn = new Exception("There is no user connected to Revit.");
//#if DEBUG // NETCOREAPP &&
// Log.WriteLine($"NetCore Preview: {exceptionNeedLoggedIn}");
// return null;
//#endif
return TestEngine.Fail(message.TestPathFile, exceptionNeedLoggedIn, testFilterNames);
}

Expand Down
9 changes: 8 additions & 1 deletion ricaun.RevitTest.Application/Revit/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ public static void OpenFile()
{
if (File.Exists(FilePath))
{
Process.Start(FilePath);
try
{
Process.Start(FilePath);
}
catch (Exception)
{
Process.Start(new ProcessStartInfo("cmd", $"/c start {FilePath}"));
}
}
}
#endregion
Expand Down
Binary file not shown.
3 changes: 2 additions & 1 deletion ricaun.RevitTest.Console/Revit/Utils/RevitTestUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ public static void CreateRevitServer(
if (revitInstallation.TryGetProcess(out Process process) == false || forceToOpenNewRevit)
{
var startRevitLanguageArgument = RevitLanguageUtils.GetArgument(forceLanguageToRevit);
var hiddenRevitArgument = "/hosted";
Log.WriteLine($"{revitInstallation}: Start {startRevitLanguageArgument}");
process = revitInstallation.Start(startRevitLanguageArgument);
process = revitInstallation.Start(startRevitLanguageArgument + " " + hiddenRevitArgument);
//processStarted = true;
}

Expand Down
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion ricaun.RevitTest.TestAdapter/Services/RevitTestConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ private string ValidadeApplication(string applicationPath)
if (File.Exists(applicationNewPath))
{
var fileVersionInfo = FileVersionInfo.GetVersionInfo(applicationNewPath);
var productVersion = $"{fileVersionInfo.ProductVersion}";
AdapterLogger.Logger.DebugOnlyLocal($"Application FileVersionInfo: {fileVersionInfo}");
var productVersion = $"{fileVersionInfo.ProductVersion.Split('+')[0]}";
AdapterLogger.Logger.Warning($"Application Process: {Path.GetFileName(applicationNewPath)} {productVersion}");
return applicationNewPath;
}
Expand Down

0 comments on commit 437eb40

Please sign in to comment.