Contains unresolved reference to an object issue - new bug? #234
-
Hi, I have an SSDT project in Visual Studio 2022 that is built using msbuild. Within the last few days, the database project build has started to fail with an error similar to this: Severity Code Description Project File Line Suppression State I thought it was an issue with my local machine, but the github action to build the database is now failing (without any changes made). To reproduce the issue, create a new SSDT project in Visual Studio 2022 and add this function. CREATE FUNCTION dbo.Test()
RETURNS TABLE
AS
RETURN
SELECT p.partition_number
FROM sys.partitions p Add a database reference to master (which should fix this issue). Then try to build. Should this be an issue here or somewhere else? Thanks, David Update: The difference seems to be between 17.4 and 17.5 of visual studio/msbuild. I can get my github action to run in 17.4 by adding vs-version which is an option for a temporary fix. - name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
vs-version: '[17.4,17.5)' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Deleted my original answer because I didn't see your last few comments in your post. And I didn't think about the fact that this particular Also, hi David 👋, I didn't realize it was you when I first answered. |
Beta Was this translation helpful? Give feedback.
-
I've logged issue #236 for this after narrowing down the issue to differences between visual studio/msbuild 17.4 and 17.5. |
Beta Was this translation helpful? Give feedback.
-
I'm working around this issue:
|
Beta Was this translation helpful? Give feedback.
I'm working around this issue: