microsoft / microsoft/Windows-classic-samples
The type or namespace name 'Windows' could not be found (are you missing a using directive or an assembly reference?
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to compile some of these sample on a Win10 machine (22H2) and everyone of these sample indicates a lib reference to "Windows". Is this some SDK DLL? Where would the lib normally be found on a Windows 10 machine? Do these sample only work on Windows 8.1? I do have the Windows 8.1 SDK installed on my local machine.
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Runtime" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
--> <Reference Include="Windows" /> <--
</ItemGroup>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the sample project files and the shown ItemGroup containing the Windows reference. Reproduce the compile failure on Windows 10 22H2 with the Windows 8.1 SDK, then determine whether the reference is expected and whether the samples compile; document the supported SDK and setup if they do not.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100