Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with .Net Core 2.1 #1

Open
Wolfeitz opened this issue Jun 12, 2018 · 1 comment
Open

Doesn't work with .Net Core 2.1 #1

Wolfeitz opened this issue Jun 12, 2018 · 1 comment

Comments

@Wolfeitz
Copy link

The Smartsheet Client doesn't seem to work with .Net Core 2.1

// Initialize client
SmartsheetClient ss = new SmartsheetBuilder().SetAccessToken(token).Build();


System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Source=smartsheet-csharp-sdk
StackTrace:
at Smartsheet.Api.Internal.Utility.Utility.GetOSFriendlyName()
at Smartsheet.Api.Internal.SmartsheetImpl.GenerateUserAgent(String userAgent)
at Smartsheet.Api.Internal.SmartsheetImpl.set_UserAgent(String value)
at Smartsheet.Api.SmartsheetBuilder.Build()
at ToolBox.BusinessClass.TccdApiRouting.AccessSmartSheet(String sheetId, String token) in C:\1\Projects\ToolBox\ToolBox\BusinessClass\TccdApiRouting.cs:line 67
at ToolBox.Controllers.ReportingController.SmartSheetApprovals(String month) in C:\1\Projects\ToolBox\ToolBox\Controllers\ReportingController.cs:line 45
at ToolBox.Controllers.ReportingController.Smart_ApprovalTracking() in C:\1\Projects\ToolBox\ToolBox\Controllers\ReportingController.cs:line 38
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()

@timwellswa
Copy link
Contributor

That is correct. The current C# SDK requires the .NET 4.5.2 (or above) framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants