Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

Can somebody highlight the uses please. Also, there are lot of unused usings being created in this file, is there anyway we can suppress them?
Posted

1 solution

Quote:
The g stands for generated, VS generates the wiring up between the code and the Xaml in this partial class.


i stands for Intellisense.
 
Share this answer
 
Comments
Mohammed Hameed 4-Jul-13 3:07am    
Wiring up is done with somefile.g.cs file but not with somefile.g.i.cs file. When I commented all code in g.i.cs file still it is working fine. Then what's the actual use of g.i.cs file?
Sushil Mate 4-Jul-13 3:12am    
I guess when you recompiled your solution g.i.cs will be overwritten, did you check the file after recompiling?

what are the unused reference it has?
Mohammed Hameed 4-Jul-13 3:24am    
Yes, obviously it will overwrite after rebuilding the project. But if I comment the code and just run the project (which means only build is happening), everything is fine. I mean I dont see any issue. So what is the exact use of g.i.cs file?
Mohammed Hameed 4-Jul-13 3:24am    
These all are unused references:

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
Sushil Mate 4-Jul-13 4:04am    
I'm not sure you can removed this references. every time you recompile the solution it will re generate the file & the references will come.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900