HeresMoreInfoOn

how to run sln file in visual studio code

Press F5, choose Debug > Start with debugging from the Visual Studio menu, or select the green Start arrow and project name on the Visual Studio toolbar. There are some basic quick fixes supported in VS Code. Rename the project code file to match your code file name. Click on the menu bar in Visual Studio and select "Extensions and Updates." Install Microsoft visual studio Installation of the Microsoft visual studio is a necessary step for the installation of the Nvidia CUDA software. Do EMC test houses typically accept copper foil in EUT? Are there conventions to indicate a new item in a list? TargetFrameworkVersion or PlatformToolset may be set to an invalid Find out more in the Tasks documentation. Use the C#. Standard header that defines the file format version. so go to the vs2005 go to file>open>website and select the folder which contains all the aspx pages and other folders such as app_code etc. Would the reflected sun's radiation melt ice in LEO? If the value isn't null, the persisted information is for a specific project, determined by the pointer to the IVsHierarchy interface. For more information, see Troubleshooting .NET Framework targeting errors. Teams. I had to review the settings for 'Default programs' and change the setting for .sln files to the Visual Studio Version Selector. Right-click on the project (tagged as unavailable in solution explorer) and click Edit yourproj. Dealing with hard questions during a software developer interview. Please note that the new versions of Visual Studio Code do support building and debugging projects for the .NET framework but this support is very limited. In this way, you can ensure that the information will be persisted with the solution and available next time the solution is opened. architecture; therefore, TensorFlow fails to load on older GPUs when, macOS 10.12.6 (Sierra) or higher (64-bit), Windows Native - Windows 7 or higher (64-bit), Windows WSL2 - Windows 10 19044 or higher (64-bit), pip version 19.0 or higher for Linux (requires. Do you want to open the solution in VS, or compile and run it? provides you with a simple list of fixes/suggestions. If the solution file is saved by a newer version of Visual Studio that has the same major version. I do also have one other question (I am asking it here because it is very closely related, I am guessing most people that want to know one want to know the other as well). Connect and share knowledge within a single location that is structured and easy to search. The condition is the same with pvdg42 mentioned, "not used any features new to VS 2015 or any .NET features available only in .NET 4.5 and newer". File > Open Folder ( Ctrl+K Ctrl+O) Use File Explorer to view the folder's files and subfolders. To set the startup project, right-click on the project name or node in Solution Explorer and choose Set as Startup Project from the context menu. You can open the sln file of the project, for example, using Visual Studio Code. Basically a solution file can be opened by using appropriate IDE (development enviornment) For Example you need visual studio to open .net related sln file. app to the Applications folder, making it available in the Launchpad . Which functionality does a solution file provide when I'm using multiple projects in a workspace of VS Code? In the second file named launch.json we add the following lines. Note: Methods defined in object, such as equals and hashCode do not get reference information due to performance reasons. We will look at these steps in this article. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. This is typically as a result of the current project type not being supported. The above feels wrong, I do not think that the solution can be to hack a project file for the compiler to know where its own files are. I want to run the file and that will open it on visual studio. VisualStudioVersion = 16.0.28701.123 Running the application generates the below output. Add the projects to the solution, and use the --solution-folder option of dotnet sln to organize the class libraries into a solution folder. Here's the next video we recommend: Productivity Tips, Pick another video from the list: Introductory Videos, Configure IntelliSense for cross-compiling. Donations to freeCodeCamp go toward our education initiatives, and help pay for servers, services, and staff. If you start from a code listing, code file, or small number of files, first make sure the code is a runnable program from a trusted source. This is a partial screenshot of two sln files, the upper one was created by Visual Studio 2019, and the lower one was created by Visual Studio 2022. this appropriate forum: Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. We use cookies to ensure that we give you the best experience on our website. More info about Internet Explorer and Microsoft Edge. Running the solution from Visual Studio Code, Run a solution from Visual Studio console without opening the IDE. The following example creates a .sln file in the current folder, with the same name as the folder: The following example creates a .sln file in the current folder, with the specified file name: The following example creates a .sln file in the specified folder, with the same name as the folder: The solution file to use. This is a tool which can be used to build your .net project and this is what visual studio uses underneath. Not the answer you're looking for? [design] is where you edit and build programs. The first Preview for Visual Studio 2022 17.6 is now available! Selecting a *.sln file opens a MSBuild-project. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, @LexLi that document is out of date I guess, since there are project files and recent commits saying 'fix msvc build'. 4 Which of the following is the correct syntax for declaration of a structure? If the code is from another development environment, there's no project file. That folder is kinda like your virtual directory. When a name is unresolved, a light bulb icon appears in the editor. If your program code is already in a Visual Studio project, open the project. Launching the CI/CD and R Collectives and community editing features for How do I "Add Existing Item" an entire directory structure in Visual Studio? Read about the new features and fixes from February. If you continue to use this site we will assume that you are happy with it. Its not a full IDE. Process.Start (pathAndFileName); when the pathAndFileName = D:\Code\MyRepoName\Solutions\TEST\TEST_1.sln this will open the windows 10 select program to run for file and Visual Studio is not in the list, but yet is set to be default for this files. IntelliSense just works: hit Space (Windows, Linux Ctrl+Space) at any time to get context specific suggestions. If you have a folder with many files, first check for a project or solution file. If any project in the solution that implements VSPackage fails to load, the OnProjectLoadFailure method is called and all the projects in the solution ignores changes it might have made during loading. The full version of Visual Studio that (most recently) saved the solution file. Clash between mismath's \C and babel with russian. Easiest way to remove 3/16" drive rivets from a lower screen door hinge? I get this error: The application for project 'C:\vbnet03sbs\chap01\MusicTrivia . this appropriate forum: If you just want to open/load the .sln inside the VS code, like Laurens said, you can have a look at the, https://stackoverflow.com/questions/tagged/visual-studio-code. For example, on Ubuntu, you may need to install ubuntu-restricted-extras to get the necessary codecs to play the videos. Refer to your description, your issue is about the VS Code and our forum is to discuss the VS IDE issues, please redirect to Double click the sln file, it will open in VS2020. Is there any tool or standard process for doing this? If it finds no solution file or multiple solution files, the command fails. If a build doesn't succeed, see the following sections for some ideas on how to get the project to build successfully. If it is unspecified, the command searches the current directory for one and fails if there are multiple solution files. To learn more, see our tips on writing great answers. # Visual Studio Version 16 I normally use the Qt Creator IDE for building with MSVC compiler. Click on the reference info to see the references in the Peek view. Places the projects in the root of the solution, rather than creating a solution folder. Most of my Solutions & Projects were created with Visual Studio 2019, and I would like to upgrade them for use with Visual Studio 2022. In the case that we have an application that has already been built using Visual Studio and we want to run this from Visual Studio Code, there are a few steps that need to be done. There are no similar sections in the .suo file since the solution needs this information to load properly. This information controls the version number in the solution icon. MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. Create a . A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices. If I open 2 sessions, one for the project and one for SLN, place the debug points in the cs code, then run the application it does not stop at the debug point. and Visual Studio is not in the list, but yet is set to be default for this files. To stop tracking the files in the ignore file open a command prompt and navigate to the directory that contains your solution file (.sln) and run the following commands. Connect and share knowledge within a single location that is structured and easy to search. Jordan's line about intimate parties in The Great Gatsby? The hierarchy data persistence is controlled by the project. Can you force Visual Studio to always run as an Administrator in Windows 8? In this file we have defined a task to build and run a dotnet application. If you have any As we know, these settings can be exported as *.vssettings. How do I run a SLN file? However, it is more common to change to directory where the "root" Makefile exists and call make. The environment knows about all of the loaded packages because they are in memory at the time the solution is saved. Prints out a description of how to use the command. Like most people, there are many customization I have made in the settings & options, and I would obviously like to use most of the same settings in Visual Studio 2022 as I did in Visual Studio 2019. Any help in this regard will be appreciated. On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. To learn more, see our tips on writing great answers. csproj) file, and choose the project file. It will load the referenced *.csproj projects and sibling or descendant project.json files but no other project files that are referenced from the solution file. Drag Visual Studio Code. Just go to File->Open->Project/Solution and browse to the .exe file. To start creating a project let's create a root folder and I'm naming the folder as "TestCore" and then open the visual studio code and go to the "File" menu and select on the "Open Folder" option, then choose our folder to created previously. The environment displays a dialog box warning the user that the solution is corrupted. There are also features outside the editor. Double-click the .csproj file to open it in Visual Studio. The environment loads the VSPackage, calls QueryInterface on the VSPackage for the IVsPersistSolutionProps interface, and calls the ReadSolutionProps method with the data in the section so the VSPackage can store the data. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. The minimum (oldest) version of Visual Studio that can open this solution file. Sincerely, Notice how make enters sub-directories to build. Start Visual Studio, and create a new project of the appropriate type. The path to the project or projects to add to the solution. This forum has migrated to Microsoft Q&A. As an example, I modified the version number of the sln file created by VS2019: For example: struct Person { char name[50]; int age; float salary; }; Which one of the following is incorrect structure declaration? To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Visual Studio tries to build and run your project. How to build SLN file from the command line using MSVC build tools You should install the Individual components VC++ 2015.3 v14.00 (v140) toolset for desktop via build tools. These files are similar to the VBG files used by the Microsoft Visual Basic software program. "# Visual Studio Version 16" See Install and use a NuGet package in Visual Studio. You can modify these two version numbers. How to install Android SDK Build Tools on the command line? Easiest way to remove 3/16" drive rivets from a lower screen door hinge? Like you would if it was a .sln file. How did StorageTek STC 4305 use backing HDDs? So, if your exe is called "Test.exe" and lies in C:\Temp, just execute C# C:\Temp\Test.exe Posted 11-Sep-12 2:50am JF2015 Comments You can also use NOTEPAD to just open and read the content of sln file. To start building the program, press the green Start button on the Visual Studio toolbar, or press F5 or Ctrl+F5. Copyright 2022 it-qa.com | All rights reserved. How do I remedy "The breakpoint will not currently be hit. Version 1.76 is now available! link on the Welcome page. If I open the "x86 Native Tools Command Prompt for VS 2017" and try to build the solution I get the following error: The important part in the above is the following: Cannot open include file: 'windows.h'. In the new project, replace all the code in the project code file with the contents of your first code listing or file. In the dialog box, navigate to your user folder, your Documents folder, or any directory or drive in which you want to save your projects. The contents of such a solution file are written in plain text inside the file and can be observed/edited by opening the file in any text editor. In Windows File Explorer, look for files with the .csproj or .sln extension. You can learn more about how to get started with Copilot in the Copilot documentation. For any parsing errors, as much information as possible is preserved with the solution files. There is a lot to discover with C# and the editor, such as format on type, IntelliSense, the rename-refactoring, etc. If you have extra questions about this answer, please click "Comment". Is that installed? Navigate to project folder (which already contains an executable) Run: msbuild myproject. Anyway, the project file is hardcoded to use the v140_xp toolset. https://github.com/fernandoescolar/vscode-solution-explorer Kind regards. To run this application from Visual Studio Code, we need to complete the below steps, Create a ".vscode" folder at the solution level Create a "Tasks.json" file Create a "launch.json" file The first step is straight-forward. Answer (1 of 3): Heard about msbuild? I tried this and it didn't work at first. The dotnet sln command provides a convenient way to list and modify projects in a solution file. Visual Studio 2022: Image is no longer available. How do I run a Visual Studio code on a Mac? In case you need to download Visual Studio Code, you can do so from the below URL. The major version of Visual Studio that (most recently) saved this solution file. VS Code only supports a limited set of project types. This release expands on the recently released 17.5 version of Visual Studio and aims at enhancing your productivity whether you're a .NET developer, a game developer, and/or a C++ developer. This extension provides Intellisense, debugging, and browsing capabilities. Select one and you'll be taken straight to its code location. How does a fan in a turbofan engine suck air in? You can add using System; to the start of the code file to resolve the unresolved name Console: .NET references can be assemblies or NuGet packages. The solution maintains the state information for projects in two files: .suo file (binary, user-specific solution options). Peng Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. In source code, the publisher or author usually explains what assemblies the code requires and what packages it depends on. * Locate msbuild.exe in your visual studio installation folder. If the code you want to run is in a GitHub or Azure DevOps repo, you can use Visual Studio to open the project directly from the repo. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. If you want use the .sln file in vscode i highly recommond using the "vscode-solution-explorer" as extension. I have a list of solutions items in ContextMenuStrip and I want to run selected one. Make sure it is from Microsoft. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. 2 How do I run a Visual Studio code on a Mac? Start VS Code and display the extensions panel (select View Extensions from the main menu). Because different versions of the .NET Framework have some backward compatibility, a newer framework might run code written for an older framework without any changes. This can be beneficial to other community members reading this thread. Is it safe/valid/appropriate to import a *.vssettings created by Visual Studio 2019 into Visual Studio 2022? Each project's file contains additional information read by the environment to populate the hierarchy with that project's items. VisualStudioVersion = 17.2.32505.173 The path to the project or projects to remove from the solution. All contents are copyright of their authors. Now go to the "View" menu and select on the "Terminal" option, then enter the above . This was a simple console application and there would certainly be more configuration required for more complex applications and for debugging. The project itself is then responsible for populating the project hierarchy and loading any nested projects. If I launch VS2022 with a command line by providing the local solution file path, it also opens successfully. Visit Microsoft Q&A to post new questions. PS: I have no experience with msbuild or the build tools. using VS2013 but still get "The builds tools for v120 (Platform Toolset = 'v120') cannot be found." To add a reference to a project manually, right-click the References node in Solution Explorer and choose Add Reference. Making statements based on opinion; back them up with references or personal experience. The data isn't normally stored in the .sln file, although you can intentionally write project information to the .sln file if you choose to do so. or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com. Run SLN file (visual studio solution) from win form application, The open-source game engine youve been waiting for: Godot (Ep. How To Compile Source Code in Visual Studio! You can also run SlnGen against a traversal project in a rooted folder to open a Visual Studio solution containing that view of your project tree. Your code might have errors. version number. 5 Why is Git ignoring Visual Studio build files? What capacitance values do you recommend for decoupling capacitors in battery-powered circuits? u shud open them as a website. Dealing with hard questions during a software developer interview. In the simplest case, to build and run an open project in Visual Studio: You can run a C# project or .csproj file if it's a runnable program. In Visual Studio you can open any EXE as a 'project'. The following example creates a .sln file in the current folder, with the same name as the folder: .NET CLI dotnet new sln See Develop code without projects or solutions. Making statements based on opinion; back them up with references or personal experience. 2023 C# Corner. Click File\Open\Project/Solution. A launch.json file is used to configure the debugger in Visual Studio Code. To use the dotnet sln command, the solution file must already exist. The full version of Visual Studio that (most recently) saved the solution file. Browse to and select the code file to import it into the project. Open Visual Studio and the To create a .gitignore file on a Unix-based system such as macOS or Linux using the command line, open the terminal application (such as Terminal.app on macOS). Read about the new features and fixes from February. The SLN files created by the Microsoft Visual Studio software are stored in a text-based file format. We also specify the output file (exe in this case). Create a simple "Hello world" console application called. Can't be used with --in-root. How can I explain to my manager that a project he wishes to undertake cannot be performed by the team? 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. This information controls the version number in the solution icon. Open Visual Studio. Download all the files Open SLN in Studio and wait for it to fully load Press F5 DutchSparks 4 yr. ago When I open the vimspeak.sln file and it has fully loaded, Microsoft Visual Studio tells me "Vimspeak unavailable" and "the project file was unloaded". This does not apply to this question. If I use the "File" menu and opens the same solution via "Recent projects and solutions", it opens successfully. You can open any solution, project, folder or file in Visual Studio Code by simply right-clicking it in Solution Explorer and select Open in Visual Studio Code. Ideally, if the solution and projects are under source code control, the path to the project should be relative to the path to of the solution. You can use the Console Application template to create a project to work with the app in Visual Studio. The Visual Studio Code C# extension can generate the assets you need to build and debug. A solution is a structure for organizing projects in Visual Studio. Another cool feature is the ability to see the number of references to a method directly above the method. error, Compilation of .NET 4.6 C# project without Visual Studio, Error MSB4096 in MSBuild when Visual Studio works fine, "C:\Microsoft.Cpp.Default.props" was not found, Jenkins build error, visual studio 2010, MSbuild , System.IO.IOException process cannot access the file because it is used by another process, MSBUuild is looking for "\v4.0\V110\Microsoft.Cpp.Default.props" when we have "/\v4.0\V140\Microsoft.Cpp.Default.props". What are some tools or methods I can purchase to trace a water leak? We will look at the second step in which we will create a "Tasks.json" file. SaveSolutionProps and WriteSolutionProps objects are called recursively by the environment to retrieve information to be saved from the IPropertyBag interface until all changes have been entered into the .sln file. Process for doing this your code file with the solution similar to the VBG used... Toward our education initiatives, and technical support state information for projects in two files:.suo file since solution... A method how to run sln file in visual studio code above the method stored in a list of solutions items in ContextMenuStrip and I want open! Family of Microsoft suites of integrated development tools for v120 ( Platform =. Only supports a limited set of project types for populating the project syntax for of... Typically accept copper foil in EUT project types making it available in the.suo since. Ability to see the number of references to a project manually, the! Have defined a task to build and run your project typically as a result the! Csproj ) file, and browsing capabilities complex applications and for debugging vscode I highly recommond using the `` ''. Rather than creating a solution from Visual Studio that ( most recently ) saved this solution file project. Donations to freeCodeCamp go toward our education initiatives, and create a new item in workspace. Or Methods I can purchase to trace a water leak reference information to. Convenient way to remove 3/16 '' drive rivets from a lower screen door hinge I 'm using multiple projects Visual... Parties in the list, but yet is set to an invalid Find more! Get reference information due to performance reasons and mobile devices the command fails read by the pointer to applications. Are similar to the.exe file door hinge the local solution file must exist! Troubleshooting.NET Framework targeting errors csproj ) file, and create a project to work with the.csproj to... Vbg how to run sln file in visual studio code used by the pointer to the Visual Studio code on a Mac defined a to. Right-Click the references node in solution Explorer and choose the project file is used to configure the debugger in Studio! You would if it is more common to change to directory where the & quot ; exists. Load properly view extensions from the below URL the method Hello world console... Performance reasons solution is corrupted this site we will look at the time the files. Methods defined in object, such as equals and hashCode do not get reference information due to reasons! Hello world '' console application and there would certainly be more configuration required for more complex applications and for.. Sln files created by Visual Studio code C # extension can generate the assets you need to build run. And share knowledge within a single location that is structured and easy to search reference! Freecodecamp go toward our education initiatives, and help pay for servers services... Highly recommond using the `` vscode-solution-explorer '' as extension quot ; Makefile exists and make. I tried this and it did n't work at first the same major version with many,... For example, using Visual Studio console without opening the IDE a launch.json file is used to build successfully of... Controlled by the team file ( EXE in this case ) Microsoft suites of integrated development tools for (... Started with Copilot in the root of the loaded packages because they are in memory at the time solution... Platform toolset = 'v120 ' ) can not be found. 'm using multiple projects in text-based. Vscode I highly recommond using the `` vscode-solution-explorer '' as extension the user the... Our education initiatives how to run sln file in visual studio code and technical support list, but yet is set be. ( EXE in this article get started with Copilot in the project file is used build! Visual Studio code if I launch VS2022 with a command line must already exist there 's no project file used., determined by the how to run sln file in visual studio code to the applications folder, making it available the... From another development environment, there 's no project file a Visual Studio file.... Stack Exchange Inc ; user contributions licensed under CC BY-SA debugging, and browsing capabilities go to File- gt! Box warning the user that the information will be persisted with the app in Visual Studio that can open solution... To the Visual Studio that has the same major version of Visual Studio build files call.! Code listing or file use the console application called the necessary codecs to play the videos the output! That the information will be persisted with the contents of your first code listing or.... 1 of 3 ): Heard about msbuild the IDE work with.csproj! Convenient way to list and modify projects in the list, but yet is set an. And mobile devices, as much information as possible is preserved with the contents of your first code listing file! Used by the project Notice how make enters sub-directories to build and run your project files. Change to directory where the & quot ; file tools or Methods I can to! ( EXE in this way, you can use the v140_xp toolset check for project! App to the IVsHierarchy interface finds no solution file family of Microsoft suites of integrated development tools v120. Anyway, the command the app in Visual Studio code C # extension can the. Did n't work at first project he wishes to undertake can not be by. Run a Visual Studio 2022 the videos msbuild.exe in your Visual Studio version I. Executable ) run: msbuild myproject to create a new item in a file! How can I explain to my manager that a project he wishes to undertake can not be found ''. N'T succeed, see Troubleshooting.NET Framework targeting errors not in the new project, determined by team... Contents of your first code listing or file great answers `` vscode-solution-explorer '' as.... Or projects to add a reference to a project manually, right-click references. Most recently ) saved this solution file possible is preserved with the contents of first. Files used by the project ( tagged as unavailable in solution Explorer and choose the project in solution Explorer and. Environment displays a dialog box warning the user that the information will be persisted with the solution.! Description of how to install ubuntu-restricted-extras to get context specific suggestions of how to get started with in... Is structured and easy to search supported in VS code only supports a limited set project... Easy to search I want to run selected one to File- & ;... Studio installation folder we will look at the time the solution is opened just go to File- & ;. A folder with many files, first check for a specific project, replace all the code requires what. In vscode I highly recommond using the `` vscode-solution-explorer '' as extension sections for ideas... Rss reader '' as extension EXE in this article the persisted information is a....Csproj or.sln extension right-click the references node in solution Explorer ) and click yourproj... A single location that is structured and easy to search contributions licensed under CC BY-SA jordan 's about. Nested projects and Visual Studio tries to build and run it project 's file contains additional information by. Locate msbuild.exe in your Visual Studio you can open this solution file is hardcoded to use console. Ability to see the number of references to a project manually, right-click the references node in solution ). More configuration required for more information, see our tips on writing great answers file and that will it! 'Ll be taken straight to its code location easiest way to remove 3/16 '' drive rivets from lower! More about how to install Android SDK build tools on the project, open solution. As much information as possible is preserved with the solution is saved about how use. We use cookies to ensure that the information will how to run sln file in visual studio code persisted with the.csproj or.sln extension longer.... Its code location a software developer interview build and debug, Linux )... File contains additional information read by the project or solution file path, it also opens.. The code requires and what packages it depends on, look for files with the solution needs this information the... Some basic quick fixes supported in VS, or compile and run your.... Which we will look at these steps in this case ) solution, rather than a! The state information for projects in a workspace of VS code line about parties! Typically as a result of the following is the correct syntax for declaration of a structure files are to! This case ) the loaded packages because they are in memory at the second step which... References or personal experience type not being supported cookie policy the great Gatsby the dotnet sln provides. I launch VS2022 with a command line would the reflected sun 's radiation melt ice in?. Inc ; user contributions licensed under CC BY-SA world '' console application template to create a simple console called. Or complaints to MSDN support, feel free to contact MSDNFSF @ microsoft.com of... As an Administrator in Windows 8 started with Copilot in the second file named launch.json how to run sln file in visual studio code add following. And that will open it on Visual Studio 2022 17.6 is now available you Edit and build programs Visual! Nuget package in Visual Studio to always run as an Administrator in Windows file Explorer, look files. Code, you may need to download Visual Studio 2022: Image no! On Ubuntu, you agree to our terms of service, privacy policy and cookie.... With a command line solution maintains the state information for projects in the new features and fixes from.. In object, such as equals and hashCode do not get reference information due to performance reasons also opens.. Know, these settings can be exported as *.vssettings created by the Microsoft basic! Knows about all of the project file or compile and run your project opens...

Carnival Sunrise Menu 2021, Articles H

Please follow and like us:

how to run sln file in visual studio code

Social media & sharing icons powered by vietnam war casualties by unit