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

Empty top-level Timestamp namespace appears in 1.2.2 causing CS0118 errors when a Timestamp type already exists in used namespace #175

Open
chrisc-ona opened this issue Jun 14, 2022 · 2 comments
Assignees

Comments

@chrisc-ona
Copy link

Probably related to #170 and/or #171. With LinqKit.Core 1.2.2, the assembly includes a Timestamp namespace with no public types in it. This raises compiler error CS0118 whenever using any type also named Timestamp, whether that type is defined within the project depending on LinqKit.Core or defined in another assembly which the project also depends upon.

This problem does not exist with LinqKit.Core 1.2.0.

@StefH
Copy link
Collaborator

StefH commented Jun 14, 2022

Only solution for this is to copy the source code/project from https://github.com/SimonCropp/Timestamp into this project. And rename Timestamp class to LinqKitTimeStamp.

@StefH
Copy link
Collaborator

StefH commented Mar 18, 2023

also this warning:

2>C:\Users\***\AppData\Local\Temp\Timestamp\Timestamp_LinqKit.Microsoft.EntityFrameworkCore7_ykzt5wi3.pyh.cs(4,12,4,21): warning CS0436: The type 'TimestampAttribute' in 'C:\Users\***\AppData\Local\Temp\Timestamp\Timestamp_LinqKit.Microsoft.EntityFrameworkCore7_ykzt5wi3.pyh.cs' conflicts with the imported type 'TimestampAttribute' in 'LinqKit.Core, Version=1.2.4.0, Culture=neutral, PublicKeyToken=bc217f8844052a91'. Using the type defined in 'C:\Users\***\AppData\Local\Temp\Timestamp\Timestamp_LinqKit.Microsoft.EntityFrameworkCore7_ykzt5wi3.pyh.cs'.

@StefH StefH self-assigned this Mar 18, 2023
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