Skip to content

Commit 3970079

Browse files
[TASKSCLOUD-896] - Deployed new 25.4 version
1 parent 3196084 commit 3970079

File tree

11 files changed

+58
-10
lines changed

11 files changed

+58
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ hs_err_pid*
109109
*.xcuserstate*StyleCop.Cache
110110
*StyleCop.Cache
111111
.vs/*
112+
*/.vs/*
112113
SDKs/PHP/.idea/*
113114
SDKs/PHP/vendor/*
114115
SDKs/PHP/testReports/*

Aspose.Tasks.Cloud.Sdk.Tests/Aspose.Tasks.Cloud.Sdk.Tests.csproj

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" />
4+
<Import Project="..\packages\NUnit.3.10.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.10.0\build\NUnit.props')" />
35
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
46
<PropertyGroup>
57
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +14,8 @@
1214
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1315
<FileAlignment>512</FileAlignment>
1416
<TargetFrameworkProfile />
17+
<NuGetPackageImportStamp>
18+
</NuGetPackageImportStamp>
1519
</PropertyGroup>
1620
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1721
<DebugSymbols>true</DebugSymbols>
@@ -34,9 +38,8 @@
3438
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
3539
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net40\Newtonsoft.Json.dll</HintPath>
3640
</Reference>
37-
<Reference Include="nunit.framework, Version=3.9.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
38-
<HintPath>..\packages\NUnit.3.9.0\lib\net40\nunit.framework.dll</HintPath>
39-
<Private>True</Private>
41+
<Reference Include="nunit.framework, Version=3.10.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
42+
<HintPath>..\packages\NUnit.3.10.0\lib\net45\nunit.framework.dll</HintPath>
4043
</Reference>
4144
<Reference Include="System" />
4245
<Reference Include="System.Data" />
@@ -93,6 +96,13 @@
9396
</ProjectReference>
9497
</ItemGroup>
9598
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
99+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
100+
<PropertyGroup>
101+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
102+
</PropertyGroup>
103+
<Error Condition="!Exists('..\packages\NUnit.3.10.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.10.0\build\NUnit.props'))" />
104+
<Error Condition="!Exists('..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3TestAdapter.props'))" />
105+
</Target>
96106
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
97107
Other similar extension points exist, see Microsoft.Common.targets.
98108
<Target Name="BeforeBuild">

Aspose.Tasks.Cloud.Sdk.Tests/Project/TestTaskDocumentFormat.cs

+9-3
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,18 @@ public async Task TestGetDocumentInCsvFormat()
6464
}
6565

6666
[Test]
67-
public async Task TestGetDocumentInCsvFormatWithSaveOptions()
67+
public async Task TestGetDocumentInCsvFormatWithSaveOptions([Values(true, false)] bool isExtendedFields)
6868
{
6969
var remoteName = await UploadFileToStorageAsync("Home move plan.mpp");
7070

7171
// SaveOptions parameters is a json-serialized representation of
7272
// Aspose.Tasks's SaveOptions class or its format-specific inheritors (Like CsvOptions, etc):
7373
// See Aspose.Tasks reference: https://apireference.aspose.com/net/tasks/aspose.tasks.saving/saveoptions
7474

75-
var saveOptionsSerialized = "{ \"TextDelimiter\":\"Comma\", \"IncludeHeaders\":false,\"NonExistingTestProperty\":false," +
75+
var saveOptionsSerialized = isExtendedFields ?
76+
"{\"View\": {\"Columns\": [{\"Type\": \"GanttChartColumn\", \"Name\": \"ID\", \"Property\": \"Id\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Active\", \"Property\": \"IsActive\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Name\", \"Property\": \"Name\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Duration\", \"Property\": \"Duration\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Start\", \"Property\": \"Start\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Finish\", \"Property\": \"Finish\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Predecessors\", \"Property\": \"Predecessors\", \"Width\": 120}, {\"Type\": \"GanttChartColumn\", \"Name\": \"Successors\", \"Property\": \"Successors\", \"Width\": 120}]}}"
77+
:
78+
"{ \"TextDelimiter\":\"Comma\", \"IncludeHeaders\":false,\"NonExistingTestProperty\":false," +
7679
"\"View\":{ \"Columns\":[{Type:\"GanttChartColumn\",\"Name\":\"TestColumn1\",\"Property\":\"Name\",\"Width\":120}," +
7780
"{Type:\"GanttChartColumn\",\"Name\":\"TestColumn2\",\"Property\":\"Duration\",\"Width\":120}]}}";
7881

@@ -90,10 +93,13 @@ public async Task TestGetDocumentInCsvFormatWithSaveOptions()
9093
Assert.IsTrue(response.Length > 0);
9194
response.Seek(0, SeekOrigin.Begin);
9295

96+
var expectedLine = isExtendedFields ?
97+
"ID;Active;Name;Duration;Start;Finish;Predecessors;Successors" :
98+
"Five to Eight Weeks Before Moving,16 days";
9399
using (var sr = new StreamReader(response))
94100
{
95101
var line1 = sr.ReadLine();
96-
Assert.AreEqual("Five to Eight Weeks Before Moving,16 days", line1);
102+
Assert.AreEqual(expectedLine, line1);
97103
}
98104
}
99105

Aspose.Tasks.Cloud.Sdk.Tests/TaskLinks/TaskLinksTests.cs

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public async Task TestEditTaskLink()
111111
Assert.AreEqual(TaskLinkType.StartToFinish, linksResponse.TaskLinks[0].LinkType);
112112
Assert.AreEqual(9600, linksResponse.TaskLinks[0].Lag);
113113
Assert.AreEqual(TimeUnitType.Day, linksResponse.TaskLinks[0].LagFormat);
114+
Assert.AreEqual("16:00:00", linksResponse.TaskLinks[0].LinkLagTimeSpan);
114115
}
115116

116117
[Test]
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net40" />
4-
<package id="NUnit" version="3.9.0" targetFramework="net40" />
4+
<package id="NUnit" version="3.10.0" targetFramework="net48" />
5+
<package id="NUnit3TestAdapter" version="3.10.0" targetFramework="net48" />
56
</packages>

Aspose.Tasks.Cloud.Sdk/Aspose.Tasks.Cloud.Sdk.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>Aspose.Tasks-Cloud</id>
5-
<version>24.10</version>
5+
<version>25.4</version>
66
<title>Aspose.Tasks Cloud SDK for .NET</title>
77
<summary>Aspose.Tasks Cloud SDK allows developer to manipulate or convert Microsoft Project documents hosted on a cloud platform from .NET applications</summary>
88
<authors>Aspose</authors>

Aspose.Tasks.Cloud.Sdk/Model/ProjectRecalculationResult.cs

+6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public class ProjectRecalculationResult
5050
/// </summary>
5151
public string ValidationErrorMessage { get; set; }
5252

53+
/// <summary>
54+
/// Gets the task uid which caused the validation error.
55+
/// </summary>
56+
public int? FailedTaskUid { get; set; }
57+
5358
/// <summary>
5459
/// Get the string presentation of the object
5560
/// </summary>
@@ -59,6 +64,7 @@ public override string ToString()
5964
var sb = new StringBuilder();
6065
sb.Append("class ProjectRecalculationResult {\n");
6166
sb.Append(" ValidationState: ").Append(this.ValidationState).Append("\n");
67+
sb.Append(" FailedTaskUid: ").Append(this.FailedTaskUid).Append("\n");
6268
sb.Append(" ValidationErrorMessage: ").Append(this.ValidationErrorMessage).Append("\n");
6369
sb.Append("}\n");
6470
return sb.ToString();

Aspose.Tasks.Cloud.Sdk/Model/Task.cs

+12
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ public class Task
170170
/// </summary>
171171
public decimal? Cost { get; set; }
172172

173+
/// <summary>
174+
/// Gets or sets a value of OutlineNumber.
175+
/// </summary>
176+
public string OutlineNumber { get; set; }
177+
173178
/// <summary>
174179
/// The difference between the baseline cost and total cost for a task.
175180
/// </summary>
@@ -624,6 +629,11 @@ public class Task
624629
/// </summary>
625630
public string ActivityId { get; set; }
626631

632+
/// <summary>
633+
/// Contains the external task's Unique identifier when the task is external.
634+
/// </summary>
635+
public string ExternalUid { get; set; }
636+
627637
/// <summary>
628638
/// Get the string presentation of the object
629639
/// </summary>
@@ -658,6 +668,7 @@ public override string ToString()
658668
sb.Append(" ConstraintType: ").Append(this.ConstraintType).Append("\n");
659669
sb.Append(" Contact: ").Append(this.Contact).Append("\n");
660670
sb.Append(" Cost: ").Append(this.Cost).Append("\n");
671+
sb.Append(" OutlineNumber: ").Append(this.OutlineNumber).Append("\n");
661672
sb.Append(" Cv: ").Append(this.Cv).Append("\n");
662673
sb.Append(" Deadline: ").Append(this.Deadline).Append("\n");
663674
sb.Append(" DurationVariance: ").Append(this.DurationVariance).Append("\n");
@@ -747,6 +758,7 @@ public override string ToString()
747758
sb.Append(" OutlineCodes: ").Append(this.OutlineCodes).Append("\n");
748759
sb.Append(" Warning: ").Append(this.Warning).Append("\n");
749760
sb.Append(" ActivityId: ").Append(this.ActivityId).Append("\n");
761+
sb.Append(" ExternalUid: ").Append(this.ExternalUid).Append("\n");
750762
sb.Append("}\n");
751763
return sb.ToString();
752764
}

Aspose.Tasks.Cloud.Sdk/Model/TaskLink.cs

+6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace Aspose.Tasks.Cloud.Sdk.Model
2929
using System.Collections;
3030
using System.Collections.Generic;
3131
using System.Runtime.Serialization;
32+
using System.Security;
3233
using System.Text;
3334
using Newtonsoft.Json;
3435
using Newtonsoft.Json.Converters;
@@ -76,6 +77,11 @@ public class TaskLink
7677
[JsonProperty("LagFormat", NullValueHandling = NullValueHandling.Ignore)]
7778
public TimeUnitType LagFormat { get; set; }
7879

80+
/// <summary>
81+
/// Gets or sets lag duration, depending on LagFormat.
82+
/// </summary>
83+
public string LinkLagTimeSpan { get; set; }
84+
7985

8086
/// <summary>
8187
/// Get the string presentation of the object

Aspose.Tasks.Cloud.Sdk/Properties/AssemblyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
// Minor Version
5454
// Build Number
5555
// Revision
56-
[assembly: AssemblyVersion("24.10.0.0")]
57-
[assembly: AssemblyFileVersion("24.10.0.0")]
56+
[assembly: AssemblyVersion("25.4.0.0")]
57+
[assembly: AssemblyFileVersion("25.4.0.0")]

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ Feel free to explore the [Developer's Guide](https://docs.aspose.cloud/display/t
3535
XER, XLSX, HTML, XML, TXT, TIF, SVG, PNG, JPEG
3636

3737

38+
## Enhancements in Version 25.4
39+
- Enhanced Task model.
40+
- Enhanced TaskLink model.
41+
- Enhanced ProjectRecalculationResult model.
42+
3843
## Enhancements in Version 24.10
3944
- Enhanced reading data from Primavera-specific task's properties.
4045

0 commit comments

Comments
 (0)