Comments (5)
The existing statement works correctly and is shorter so I don't know why you want to change it. Yours works too of course but it's longer.
from cs12dotnet8.
Strange. I got an "CurrentDirectory ist unknown" error.
from cs12dotnet8.
CurrentDirectory
is a property of the Environment
static class that is imported by the project file:
<ItemGroup>
<Using Include="System.Console" Static="true" />
<Using Include="System.IO.Path" Static="true" />
<Using Include="System.Environment" Static="true" />
</ItemGroup>
You must have missed Step 2 on page 493:
from cs12dotnet8.
You are right, I've overseen to include System.Environment from Page 493 /2., my fault, sorry!
from cs12dotnet8.
No worries. I suspect that other readers might too, it's easy to overlook because I do not show the actual markup because I was trying to save space in the book (I'm limited to about 750 pages). I've added an improvement item for this:
https://github.com/markjprice/cs12dotnet8/blob/main/docs/errata/improvements.md#page-493---serializing-as-xml
from cs12dotnet8.
Related Issues (20)
- General question HOT 4
- Writing mistake on page 124 HOT 1
- Page 144 HOT 3
- Chapter 13 HTTP/3 issue HOT 5
- Raising issues with the book, 35, 3
- there is no the check box labeled "Do not use top-level statements" in Microsoft Visual Studio Enterprise 2022 HOT 2
- Problem with code: Revealing the extent of the C# vocabulary. HOT 3
- Answers to Knowledge Questions HOT 1
- Problem in source code, but book listing is correct HOT 1
- C# 12 and .Net 8 Modern Cross-Platform Development Fundamentals solution file, page 2 HOT 2
- Page 51, Exercise 1.5 - Explore themes of modern .NET link not working HOT 1
- Page 95 Exploring more about console apps typo HOT 1
- https://themesof.net/ does not exists. HOT 2
- Page 261 typo HOT 1
- Book Links HOT 1
- Book Links Chapter03 - Coding problems in interviews - FizzBuzz for programming interviews HOT 1
- Some Information Left From the Previous Topic HOT 1
- Compatibility issues when trying to work through EF functionality. HOT 4
- Broken YouTube link HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cs12dotnet8.