# CUDA 11.8 Build issues --\> MSB3721

**URL:** <https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439>\
**Category:** CUDA-GDB\
**Created:** [October 1, 2024, 1:09pm UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439 "2024-10-01T13:09:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![manvanth.gs](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@manvanth.gs](https://forums.developer.nvidia.com/u/manvanth.gs)\
**Post date:** [October 1, 2024, 1:09pm UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/1 "2024-10-01T13:09:56Z")

</div>

Hi,

I am trying to build a CUDA library, while trying to build the library I’m getting MSB3721 error. This issue is very ambiguous, the issue is not occurring in one code but is occurring in a different code. The configurations of both the codes are same (even the code is same). I am using CUDA 11.8 with Visual studio 2022 and MSVC 2019 compiler for c++.

It would be really helpful if someone can help me resolve this issue, I am attaching both the solutions along with this post, along with the screenshots of the build outputs I got.

Thank you.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/a/e/7/ae7ab4686e52b87726eb9902ac28058f8e44210f.png)  
 ![image](https://global.discourse-cdn.com/nvidia/original/4X/4/f/d/4fd0fcf44625a39465f179fdc7096e87abef8853.png)

[lib\_gpu\_neural\_filters.zip](https://forums.developer.nvidia.com/uploads/short-url/oaeBLEoT7uaE7wbeFUAiJt58tJk.zip) (29.7 MB)  
[cuda\_lib\_test.zip](https://forums.developer.nvidia.com/uploads/short-url/U8dIxJI54SXMjkMyCr2xohmsyn.zip) (545.6 KB)

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [October 8, 2024, 3:10am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/2 "2024-10-08T03:10:03Z")

</div>

Hi, @manvanth.gs

CUDA11.8 is relative old. Can you please use the latest CUDA to build ? [CUDA Toolkit 12.6 Update 2 Downloads | NVIDIA Developer](https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64)

Also does it block your work because you mentioned one solution is OK, right ?

---

<div class="post-metadata">

**Author:** ![manvanth.gs](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@manvanth.gs](https://forums.developer.nvidia.com/u/manvanth.gs)\
**Post date:** [October 8, 2024, 6:32am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/3 "2024-10-08T06:32:24Z")

</div>

Hi veraj,

Thank you for your response,

retargeting to cuda 12.6 worked, However I tried to retarget to CUDA 12.4 earlier and that gave the same error as well.

I was using CUDA 11.8 because the code base was built on 11.8 and the problem shared here is a minimized version.

Thank you for your help, but I would still like to know why there is ambiguity, it would be great if you could help me with the reason so that in future such errors can be minimized.

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [October 11, 2024, 11:00am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/4 "2024-10-11T11:00:22Z")

</div>

Hi, @manvanth.gs

We tried CUDA 12.3. We can build successful. So 12.4 earlier statement may not accurate.

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/f/b/2/fb2fb15ab24fe3679cb1f86e9625364814390e7a.png)

---

<div class="post-metadata">

**Author:** ![manvanth.gs](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@manvanth.gs](https://forums.developer.nvidia.com/u/manvanth.gs)\
**Post date:** [October 23, 2024, 9:58am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/5 "2024-10-23T09:58:01Z")

</div>

Hi,

I Faced the Issue again, This time I am using Visual studio 2022, with Visual studio 2019 build tools and CUDA 12.6 version.

However I am getting MSB error in one project but I am not getting MSB Error in the second one.

These are the contents of my vc++ Project file (both the vc++ Project files are identical which I verified using a difference checker).

\<?xml version="1.0" encoding="utf-8"?\> Debug x64 Release x64 {FC629092-2A8D-46AD-A58C-F84E53AB4992} LibGPUNeuralFilters 10.0 StaticLibrary true MultiByte v142 StaticLibrary false true MultiByte v142 true Level3 Disabled WIN32;WIN64;\_DEBUG;\_CONSOLE;%(PreprocessorDefinitions) $(SolutionDir);%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir) Default true Console cudart\_static.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) 64 true true true compute\_52,sm\_52;compute\_60,sm\_60;compute\_61,sm\_61;compute\_70,sm\_70;compute\_75,sm\_75;compute\_80,sm\_80;compute\_86,sm\_86 Level3 MaxSpeed true true WIN32;WIN64;NDEBUG;\_CONSOLE;%(PreprocessorDefinitions) $(SolutionDir);%(AdditionalIncludeDirectories);$(CudaToolkitIncludeDir) Default true true true Console cudart\_static.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies) 64 true true true compute\_52,sm\_52;compute\_60,sm\_60;compute\_61,sm\_61;compute\_70,sm\_70;compute\_75,sm\_75;compute\_80,sm\_80;compute\_86,sm\_86 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}. 

It would be very helpful if you could help me resolve this.

Thank you,

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [June 24, 2025, 10:13am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/6 "2025-06-24T10:13:43Z")

</div>

Seems your project issue as one is OK while another isn’t.  
Can you please try with the latest CUDA 12.9 ?

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [August 23, 2025, 10:14am UTC](https://forums.developer.nvidia.com/t/cuda-11-8-build-issues-msb3721/308439/7 "2025-08-23T10:14:04Z")

</div>

Closed on August 23, 2025, 10:14am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
