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

feat: Create NetStandard 2.0 library #1510

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

drstrangelooker
Copy link
Collaborator

feat: Create NetStandard 2.0 library #1398

Kristoffer Sjöberg and others added 3 commits November 23, 2023 11:50
Split the library in two parts: One runtime library which targets .NET Standard 2.0 and one test library that targets .NET 6 and consumes the runtime library. This way, Xunit and other test-related libraries are not required to be deployed when referencing Look#.

It is recommended to use the lowest/oldest .NET Standard version which under which your library can execute to maximize compatibility.

In addition, add support for setting custom headers on a request-by-request basis. This is required because Looker requires the User-Agent header to be present when acquiring an embed session.
@drstrangelooker drstrangelooker requested a review from a team as a code owner September 26, 2024 22:10
@drstrangelooker
Copy link
Collaborator Author

@jkaster or @josephaxisa can either of you comment on this change?

@jkaster jkaster self-assigned this Oct 28, 2024
jkaster and others added 4 commits October 28, 2024 16:11
HttpMethod.Patch is no longer recognized

Also improved reserved word support

However, Rider and/or .NET Core test runners completely fail to run tests now so I can't verify this version although it builds successfully with only some warnings
packages/sdk-codegen/src/csharp.gen.ts Dismissed Show dismissed Hide dismissed
# Conflicts:
#	spec/Looker.4.0.json
#	spec/Looker.4.0.oas.json
@jkaster
Copy link
Contributor

jkaster commented Nov 9, 2024

@ksjoberg Can you pull down this branch and see if you can get the tests to work? I don't currently have a windows machine available to me and my linux box with Rider is failing to run the tests. Thanks.

Copy link
Contributor

github-actions bot commented Nov 9, 2024

Codegen Tests

441 tests  +2   425 ✅ +2   37s ⏱️ -1s
 19 suites ±0    16 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit e0d9213. ± Comparison against base commit 1436368.

@ksjoberg
Copy link

I checked and there are 7 tests failing and 17 tests passing. You can run the tests from the command prompt using dotnet test in the LookerSdk.Tests directory. My VS2022 correctly identifies the tests and allows me to debug them interactively. I think the 441 tests run by github-actions might not include the tests in the C# LookerSdk.Tests project.

@jkaster
Copy link
Contributor

jkaster commented Nov 11, 2024

Thanks, @ksjoberg! I ran out of time to work on this more last week, but I'll be able to resume work on it again this week, and JetBrains has also suggested a work-around to get the tests running locally for me. If that works, progress will be much more rapid.

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

Successfully merging this pull request may close these issues.

3 participants