Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet346/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   342   343   344   345   346   347   348   349   ...   453
5.
Type Calcs in the Name field and click OK. Visual Studio creates a class library project for you.
6.
Right-click 
Class1.cs
in Solution Explorer and choose Rename from the context menu. 
Visual Studio makes the filename editable.
7.
Type 
Calcs.CS
for the new filename and press Enter. Visual Studio displays a dialog box that 
asks whether you’d like to rename all of the 
Class1.cs
references to match the new filename.
8.
Click Yes. The project is ready for use.
At the time of this writing, IronPython doesn’t support extensions written using the .NET 
Framework 4.0. You must create your extensions using the .NET Framework 3.5 or earlier. 
Otherwise, the extension will simply fail to load and IronPython won’t provide anything in the 
way of an explanation (at least, nothing useable). If you suspect that you’ve targeted the wrong 
.NET Framework version, choose Project
➤➤➪➤➤
ProjectName Properties. Select the Application 
tab of the Properties window and change the entry in the Target Framework field to .NET 
Framework 3.5, as shown in Figure 16-2. The IDE may ask permission to modify features in 
your setup and require that you restart your project to see the effects of the change.
fIgURE 16-2: 
Modify the Target Framework field to a version of the .NET Framework that
works with IronPython.
548592c16.indd 330
2/24/10 12:49:21 PM
www.finebook.ir


Creating the Simple C# Extension
 

 
331
developing the C# Extension
The C# extension does have a few tricks to it, but generally speaking, if you know how to create a 
class library, you already know how to create the code for a C# extension. Listing 16-1 shows the 
code for the example extension.

Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   342   343   344   345   346   347   348   349   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish